Class ParseResult<O>
- java.lang.Object
-
- com.googlecode.cqengine.query.parser.common.ParseResult<O>
-
public class ParseResult<O> extends Object
Encapsulates the result of parsing a string-based query: the parsed query itself, and any query options associated with the query. Query options specify optional non-query parameters which might have been parsed along with the query, such as how results should be ordered etc.- Author:
- niall.gallagher
-
-
Constructor Summary
Constructors Constructor Description ParseResult(Query<O> query, QueryOptions queryOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query<O>
getQuery()
Returns the parsed query.QueryOptions
getQueryOptions()
Returns the parsed query options, which may includeOrderByOption
if ordering was specified in the string query.
-
-
-
Constructor Detail
-
ParseResult
public ParseResult(Query<O> query, QueryOptions queryOptions)
-
-
Method Detail
-
getQuery
public Query<O> getQuery()
Returns the parsed query.- Returns:
- The parsed query (never null).
-
getQueryOptions
public QueryOptions getQueryOptions()
Returns the parsed query options, which may includeOrderByOption
if ordering was specified in the string query. If no query options were specified in the string then the returned query options will not be null, but will be empty.- Returns:
- The parsed query options.
-
-