public class FunctionQParser extends QParser
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_CONSUME_DELIMITER |
static int |
FLAG_DEFAULT |
static int |
FLAG_IS_AGG |
StrParser |
sp |
localParams, localParamsEnd, params, qstr, query, recurseCount, req, stringIncludingLocalParams, valFollowedParams| Constructor and Description |
|---|
FunctionQParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
argWasQuoted() |
protected boolean |
consumeArgumentDelimiter()
Consume an argument delimiter (a comma) from the token stream.
|
boolean |
getParseMultipleSources()
parse multiple comma separated value sources
|
boolean |
getParseToEnd()
throw exception if there is extra stuff at the end of the parsed valuesource(s).
|
boolean |
hasMoreArguments()
Are there more arguments in the argument list being parsed?
|
Query |
parse()
Create and return the
Query object represented by qstr. |
AggValueSource |
parseAgg(int flags) |
String |
parseArg() |
double |
parseDouble()
Parse a Double
|
Float |
parseFloat()
Parse a float.
|
String |
parseId() |
int |
parseInt()
Parse an integer
|
Query |
parseNestedQuery() |
ValueSource |
parseValueSource()
Parse an individual ValueSource.
|
protected ValueSource |
parseValueSource(boolean doConsumeDelimiter)
Parse an individual value source.
|
protected ValueSource |
parseValueSource(int flags) |
List<ValueSource> |
parseValueSourceList()
Parse a list of ValueSource.
|
void |
setParseMultipleSources(boolean parseMultipleSources) |
void |
setParseToEnd(boolean parseToEnd) |
void |
setString(String s) |
addDebugInfo, getDefaultHighlightFields, getHighlightQuery, getLocalParams, getParam, getParams, getParser, getQuery, getReq, getSort, getString, setLocalParams, setParams, setReq, subQuerypublic static final int FLAG_CONSUME_DELIMITER
public static final int FLAG_IS_AGG
public static final int FLAG_DEFAULT
public StrParser sp
public FunctionQParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
public void setParseMultipleSources(boolean parseMultipleSources)
public boolean getParseMultipleSources()
public void setParseToEnd(boolean parseToEnd)
public boolean getParseToEnd()
public Query parse() throws SyntaxError
QParserQuery object represented by qstr. Null MAY be returned to signify
there was no input (e.g. no query string) to parse.parse in class QParserSyntaxErrorQParser.getQuery()public boolean hasMoreArguments()
throws SyntaxError
SyntaxErrorpublic String parseId() throws SyntaxError
SyntaxErrorpublic Float parseFloat() throws SyntaxError
SyntaxErrorpublic double parseDouble()
throws SyntaxError
SyntaxErrorpublic int parseInt()
throws SyntaxError
SyntaxErrorpublic boolean argWasQuoted()
public String parseArg() throws SyntaxError
SyntaxErrorpublic List<ValueSource> parseValueSourceList() throws SyntaxError
SyntaxErrorpublic ValueSource parseValueSource() throws SyntaxError
SyntaxErrorpublic Query parseNestedQuery() throws SyntaxError
SyntaxErrorprotected ValueSource parseValueSource(boolean doConsumeDelimiter) throws SyntaxError
doConsumeDelimiter - whether to consume a delimiter following the ValueSourceSyntaxErrorprotected ValueSource parseValueSource(int flags) throws SyntaxError
SyntaxErrorpublic AggValueSource parseAgg(int flags) throws SyntaxError
SyntaxErrorprotected boolean consumeArgumentDelimiter()
throws SyntaxError
SyntaxErrorCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.