Class ResolvedQuery
java.lang.Object
org.apache.juneau.commons.beanquery.ResolvedQuery
A
BeanQuery after validation: the engine-neutral input to every engine hook.
Produced only by BeanQueryContext.resolve(BeanQuery) and BeanQuerySession.resolve(BeanQuery).
Every column in it is allowed, every expression is parsed, depth-checked and type-checked, the limit is clamped,
and counts() is never CountPolicy.IF_REQUESTED. Engines never see raw request strings.
Example:
The nested ResolvedQuery.SortKey type is covered by this example.
- Since:
- 10.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne sort key: its column, the column's value type, and the direction. -
Method Summary
-
Method Details
-
filter
- Returns:
- The resolved search tree, AND-ed and OR-ed across columns as the request's search expressed it;
never
null — an empty search resolves to an emptyFilter.And, which matches every row.
-
sort
- Returns:
- The sort keys, most significant first (empty for source order).
-
view
- Returns:
- The view columns; never empty (defaults to every allowed column in declaration order).
-
position
- Returns:
- The zero-based offset of the first row (never negative).
-
limit
- Returns:
- The maximum number of rows, or
null for all rows (only whenmaxLimitis unset).
-
counts
- Returns:
- The effective count policy:
CountPolicy.NONE,CountPolicy.MATCHEDorCountPolicy.BOTH.
-
toString
-