public static interface IndexedQueryExecutor.Support<S extends Storable>
IndexedQueryExecutor
.Modifier and Type | Method and Description |
---|---|
Cursor<S> |
fetchFromIndexEntryQuery(StorableIndex<S> index,
Query<?> indexEntryQuery)
Fetch Storables referenced by the given index entry query.
|
Cursor<S> |
fetchFromIndexEntryQuery(StorableIndex<S> index,
Query<?> indexEntryQuery,
Query.Controller controller)
Fetch Storables referenced by the given index entry query.
|
Cursor<S> |
fetchSubset(StorableIndex<S> index,
java.lang.Object[] identityValues,
BoundaryType rangeStartBoundary,
java.lang.Object rangeStartValue,
BoundaryType rangeEndBoundary,
java.lang.Object rangeEndValue,
boolean reverseRange,
boolean reverseOrder)
Perform an index scan of a subset of Storables referenced by an
index.
|
Cursor<S> |
fetchSubset(StorableIndex<S> index,
java.lang.Object[] identityValues,
BoundaryType rangeStartBoundary,
java.lang.Object rangeStartValue,
BoundaryType rangeEndBoundary,
java.lang.Object rangeEndValue,
boolean reverseRange,
boolean reverseOrder,
Query.Controller controller)
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.
|
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 indexEntryQueryFetchException
Cursor<S> fetchFromIndexEntryQuery(StorableIndex<S> index, Query<?> indexEntryQuery, Query.Controller controller) throws FetchException
index
- index to openindexEntryQuery
- query with no blank parameters, derived from
the query returned by indexEntryQuerycontroller
- optional controller which can abort query operationFetchException
Cursor<S> fetchSubset(StorableIndex<S> index, java.lang.Object[] identityValues, BoundaryType rangeStartBoundary, java.lang.Object rangeStartValue, BoundaryType rangeEndBoundary, java.lang.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 orderFetchException
Cursor<S> fetchSubset(StorableIndex<S> index, java.lang.Object[] identityValues, BoundaryType rangeStartBoundary, java.lang.Object rangeStartValue, BoundaryType rangeEndBoundary, java.lang.Object rangeEndValue, boolean reverseRange, boolean reverseOrder, Query.Controller controller) 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 ordercontroller
- optional controller which can abort query operationFetchException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.