public class QueryLexer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
QUERY_DOAS |
static String |
QUERY_FIELDS
Query string constants.
|
static String |
QUERY_FORMAT |
static String |
QUERY_FROM |
static String |
QUERY_MINIMAL |
static String |
QUERY_PAGE_SIZE |
static String |
QUERY_SORT |
static String |
QUERY_TO |
Constructor and Description |
---|
QueryLexer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Token[] |
tokens(String exp)
Scan the provided query and generate a token stream to be used by the query parser.
|
Token[] |
tokens(String exp,
Collection<String> ignoreProperties)
Scan the provided query and generate a token stream to be used by the query parser.
|
public static final String QUERY_FIELDS
public static final String QUERY_FORMAT
public static final String QUERY_PAGE_SIZE
public static final String QUERY_TO
public static final String QUERY_FROM
public static final String QUERY_MINIMAL
public static final String QUERY_SORT
public static final String QUERY_DOAS
public Token[] tokens(String exp) throws InvalidQueryException
exp
- the query expression to scanInvalidQueryException
- if the query is invalidpublic Token[] tokens(String exp, Collection<String> ignoreProperties) throws InvalidQueryException
exp
- the query expression to scanignoreProperties
- property names which should be ignoredInvalidQueryException
- if the query is invalidCopyright © 2022 Apache Software Foundation. All rights reserved.