Package org.apache.jackrabbit.oak.query
Class ResultImpl
java.lang.Object
org.apache.jackrabbit.oak.query.ResultImpl
- All Implemented Interfaces:
Result
A query result.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.api.Result
Result.SizePrecision
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the list of column names.String[]
Get the distinct selector names of all columns.getRows()
Get the rows.String[]
Get the list of selector names.long
getSize()
Get the number of rows, if known.long
getSize
(Result.SizePrecision precision, long max) Get the number of rows, if known.
-
Field Details
-
query
-
-
Method Details
-
getColumnNames
Description copied from interface:Result
Get the list of column names.- Specified by:
getColumnNames
in interfaceResult
- Returns:
- the column names
-
getColumnSelectorNames
Description copied from interface:Result
Get the distinct selector names of all columns. The list is ordered as selectors appear in the result. For columns without selector, an empty entry (null) is used.- Specified by:
getColumnSelectorNames
in interfaceResult
- Returns:
- the distinct selector names
-
getSelectorNames
Description copied from interface:Result
Get the list of selector names.- Specified by:
getSelectorNames
in interfaceResult
- Returns:
- the selector names
-
getRows
Description copied from interface:Result
Get the rows. -
getSize
public long getSize()Description copied from interface:Result
Get the number of rows, if known. If the size is not known, -1 is returned. -
getSize
Description copied from interface:Result
Get the number of rows, if known. If the size is not known, -1 is returned.- Specified by:
getSize
in interfaceResult
- Parameters:
precision
- the required precisionmax
- the maximum number that should be returned (Long.MAX_VALUE for unlimited). For EXACT, the cost of the operation is at most O(max). For approximations, the cost of the operation should be at most O(log max).- Returns:
- the (approximate) size. If an implementation does know the exact value, it returns it (even if the value is higher than max). If the implementation does not know the value, and the child node count is higher than max, it returns Long.MAX_VALUE.
-