@ProviderType public static interface QueryIndex.IndexPlan extends java.lang.Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
QueryIndex.IndexPlan.Builder
A builder for index plans.
|
Modifier and Type | Method and Description |
---|---|
QueryIndex.IndexPlan |
copy()
Creates a cloned copy of current plan.
|
@Nullable java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the named attribute as an
Object ,
or null if no attribute of the given name exists. |
double |
getCostPerEntry()
The cost to read one entry from the cursor.
|
double |
getCostPerExecution()
The cost to execute the query once.
|
NodeState |
getDefinition()
The node state with the index definition.
|
long |
getEstimatedEntryCount()
The estimated number of entries in the cursor that is returned by the query method,
when using this plan.
|
Filter |
getFilter()
The filter to use.
|
java.lang.String |
getPathPrefix()
The path prefix for this index plan.
|
@Nullable java.lang.String |
getPlanName()
Get the unique plan name.
|
@Nullable Filter.PropertyRestriction |
getPropertyRestriction()
The property restriction for this index plan or
null if
this index plan isn't base on a property restriction. |
java.util.List<QueryIndex.OrderEntry> |
getSortOrder()
The sort order of the returned entries, or null if unsorted.
|
boolean |
getSupportsPathRestriction()
Whether index for this plan supports handling path restrictions natively.
|
boolean |
includesNodeData()
Whether the cursor is able to read all properties from a node.
|
boolean |
isDelayed()
Whether the index is not always up-to-date.
|
boolean |
isDeprecated()
Whether the index is deprecated.
|
boolean |
isFulltextIndex()
Whether the fulltext part of the filter is evaluated (possibly with
an extended syntax).
|
default boolean |
logWarningForPathFilterMismatch() |
void |
setFilter(Filter filter)
Use the given filter.
|
double getCostPerExecution()
double getCostPerEntry()
long getEstimatedEntryCount()
Filter getFilter()
void setFilter(Filter filter)
boolean isDelayed()
boolean isFulltextIndex()
boolean includesNodeData()
java.util.List<QueryIndex.OrderEntry> getSortOrder()
NodeState getDefinition()
java.lang.String getPathPrefix()
boolean getSupportsPathRestriction()
@Nullable @Nullable Filter.PropertyRestriction getPropertyRestriction()
null
if
this index plan isn't base on a property restriction. E.g. a plan
based on an order by clause in the query.null
.QueryIndex.IndexPlan copy()
@Nullable @Nullable java.lang.Object getAttribute(java.lang.String name)
Object
,
or null
if no attribute of the given name exists.name
- String
specifying the name of
the attributeObject
containing the value
of the attribute, or null
if the attribute does not exist@Nullable @Nullable java.lang.String getPlanName()
boolean isDeprecated()
default boolean logWarningForPathFilterMismatch()
Copyright © 2010 - 2020 Adobe. All Rights Reserved