Class QueryIndex.IndexPlan.Builder
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.query.QueryIndex.IndexPlan.Builder
-
- Enclosing interface:
- QueryIndex.IndexPlan
public static class QueryIndex.IndexPlan.Builder extends Object
A builder for index plans.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<String>>additionalMessagesprotected Map<String,Object>attributesprotected doublecostPerEntryprotected doublecostPerExecutionprotected NodeStatedefinitionprotected booleandeprecatedprotected longestimatedEntryCountprotected Filterfilterprotected booleanincludesNodeDataprotected booleanisDelayedprotected booleanisFulltextIndexprotected booleanlogWarningForPathFilterMismatchprotected StringpathPrefixprotected StringplanNameprotected Filter.PropertyRestrictionpropRestrictionprotected List<QueryIndex.OrderEntry>sortOrderprotected booleansupportsPathRestriction
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
costPerExecution
protected double costPerExecution
-
costPerEntry
protected double costPerEntry
-
estimatedEntryCount
protected long estimatedEntryCount
-
filter
protected Filter filter
-
isDelayed
protected boolean isDelayed
-
isFulltextIndex
protected boolean isFulltextIndex
-
includesNodeData
protected boolean includesNodeData
-
sortOrder
protected List<QueryIndex.OrderEntry> sortOrder
-
definition
protected NodeState definition
-
propRestriction
protected Filter.PropertyRestriction propRestriction
-
pathPrefix
protected String pathPrefix
-
supportsPathRestriction
protected boolean supportsPathRestriction
-
planName
protected String planName
-
deprecated
protected boolean deprecated
-
logWarningForPathFilterMismatch
protected boolean logWarningForPathFilterMismatch
-
-
Method Detail
-
setCostPerExecution
public QueryIndex.IndexPlan.Builder setCostPerExecution(double costPerExecution)
-
setCostPerEntry
public QueryIndex.IndexPlan.Builder setCostPerEntry(double costPerEntry)
-
setEstimatedEntryCount
public QueryIndex.IndexPlan.Builder setEstimatedEntryCount(long estimatedEntryCount)
-
setFilter
public QueryIndex.IndexPlan.Builder setFilter(Filter filter)
-
setDelayed
public QueryIndex.IndexPlan.Builder setDelayed(boolean isDelayed)
-
addAdditionalMessage
public QueryIndex.IndexPlan.Builder addAdditionalMessage(String level, String s)
-
setLogWarningForPathFilterMismatch
public QueryIndex.IndexPlan.Builder setLogWarningForPathFilterMismatch(boolean value)
-
setFulltextIndex
public QueryIndex.IndexPlan.Builder setFulltextIndex(boolean isFulltextIndex)
-
setIncludesNodeData
public QueryIndex.IndexPlan.Builder setIncludesNodeData(boolean includesNodeData)
-
setSortOrder
public QueryIndex.IndexPlan.Builder setSortOrder(List<QueryIndex.OrderEntry> sortOrder)
-
setDefinition
public QueryIndex.IndexPlan.Builder setDefinition(NodeState definition)
-
setPropertyRestriction
public QueryIndex.IndexPlan.Builder setPropertyRestriction(Filter.PropertyRestriction restriction)
-
setPathPrefix
public QueryIndex.IndexPlan.Builder setPathPrefix(String pathPrefix)
-
setSupportsPathRestriction
public QueryIndex.IndexPlan.Builder setSupportsPathRestriction(boolean supportsPathRestriction)
-
setAttribute
public QueryIndex.IndexPlan.Builder setAttribute(String key, Object value)
-
setPlanName
public QueryIndex.IndexPlan.Builder setPlanName(String name)
-
setDeprecated
public QueryIndex.IndexPlan.Builder setDeprecated(boolean deprecated)
-
build
public QueryIndex.IndexPlan build()
-
-