|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface IndexedQueryExecutor.Support<S extends Storable>
Provides support for IndexedQueryExecutor.
| Method Summary | |
|---|---|
Cursor<S> |
fetchFromIndexEntryQuery(StorableIndex<S> index,
Query<?> indexEntryQuery)
Fetch Storables referenced by the given index entry query. |
Cursor<S> |
fetchSubset(StorableIndex<S> index,
Object[] identityValues,
BoundaryType rangeStartBoundary,
Object rangeStartValue,
BoundaryType rangeEndBoundary,
Object rangeEndValue,
boolean reverseRange,
boolean reverseOrder)
Perform an index scan of a subset of Storables referenced by an index. |
Query<?> |
indexEntryQuery(StorableIndex<S> index)
Returns an open query if the given index supports query access. |
| Method Detail |
|---|
Query<?> indexEntryQuery(StorableIndex<S> index)
throws FetchException
If an index entry query is returned, the fetchSubset method is never called by IndexedQueryExecutor.
FetchException
Cursor<S> fetchFromIndexEntryQuery(StorableIndex<S> index,
Query<?> indexEntryQuery)
throws FetchException
index - index to openindexEntryQuery - query with no blank parameters, derived from
the query returned by indexEntryQuery
FetchException
Cursor<S> fetchSubset(StorableIndex<S> index,
Object[] identityValues,
BoundaryType rangeStartBoundary,
Object rangeStartValue,
BoundaryType rangeEndBoundary,
Object rangeEndValue,
boolean reverseRange,
boolean reverseOrder)
throws FetchException
This method is only called if no index entry query was provided for the given index.
index - index to open, which may be a primary key indexidentityValues - optional list of exactly matching values to apply to indexrangeStartBoundary - start boundary typerangeStartValue - value to start at if boundary is not openrangeEndBoundary - end boundary typerangeEndValue - value to end at if boundary is not openreverseRange - indicates that range operates on a property whose
natural order is descending. Only the code that opens the physical
cursor should examine this parameter. If true, then the range start and
end parameter pairs need to be swapped.reverseOrder - when true, iteration should be reversed from its
natural order
FetchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||