Interface QueryIndex.AdvancedQueryIndex
- All Known Subinterfaces:
QueryIndex.AdvanceFulltextQueryIndex
- Enclosing interface:
- QueryIndex
public static interface QueryIndex.AdvancedQueryIndex
A query index that may support using multiple access orders
(returning the rows in a specific order), and that can provide detailed
information about the cost.
-
Method Summary
Modifier and TypeMethodDescriptiongetPlanDescription
(QueryIndex.IndexPlan plan, NodeState root) Get the query plan description (for logging purposes).getPlans
(Filter filter, List<QueryIndex.OrderEntry> sortOrder, NodeState rootState) Return the possible index plans for the given filter and sort order.query
(QueryIndex.IndexPlan plan, NodeState rootState) Start a query.
-
Method Details
-
getPlans
List<QueryIndex.IndexPlan> getPlans(Filter filter, List<QueryIndex.OrderEntry> sortOrder, NodeState rootState) Return the possible index plans for the given filter and sort order. Please note this method is supposed to run quickly. That means it should usually not read any data from the storage.- Parameters:
filter
- the filtersortOrder
- the sort order or null if no sorting is requiredrootState
- root state of the current repository snapshot- Returns:
- the list of index plans (null if none)
-
getPlanDescription
Get the query plan description (for logging purposes).The index plan is one of the plans that the index returned in the getPlans call.
- Parameters:
plan
- the index planroot
- root state of the current repository snapshot- Returns:
- the query plan description
-
query
Start a query. The filter and sort order of the index plan is to be used.The index plan is one of the plans that the index returned in the getPlans call.
- Parameters:
plan
- the index plan to userootState
- root state of the current repository snapshot- Returns:
- a cursor to iterate over the result
-