public class IndexDefinition.IndexingRule extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(String nodeTypeName) |
boolean |
appliesTo(org.apache.jackrabbit.oak.api.Tree state)
Returns
true if this rule applies to the given node
state . |
org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate |
getAggregate() |
String |
getBaseNodeType() |
org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition |
getConfig(String propertyName) |
List<org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition> |
getNodeScopeAnalyzedProps() |
String |
getNodeTypeName()
Returns the name of the node type where this rule applies to.
|
List<org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition> |
getNotNullCheckEnabledProperties() |
List<org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition> |
getNullCheckEnabledProperties() |
boolean |
includePropertyType(int type) |
boolean |
indexesAllNodesOfMatchingType()
Flag to determine weather current index rule definition allows indexing of all
node of type as covered by the current rule.
|
boolean |
isAggregated(String nodePath) |
boolean |
isBasedOnNtBase() |
boolean |
isFulltextEnabled()
Returns true if the rule has any property definition which enables
evaluation of fulltext related clauses
|
boolean |
isIndexed(String propertyName)
Returns
true if the property with the given name is
indexed according to this rule. |
boolean |
isNodeFullTextIndexed()
Returns true if a fulltext field for the node would be created
for any node matching the current rule.
|
boolean |
isNodeNameIndexed() |
String |
toString() |
public boolean isIndexed(String propertyName)
true
if the property with the given name is
indexed according to this rule.propertyName
- the name of a property.true
if the property is indexed;
false
otherwise.public String getNodeTypeName()
public String getBaseNodeType()
public List<org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition> getNullCheckEnabledProperties()
public List<org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition> getNotNullCheckEnabledProperties()
public List<org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition> getNodeScopeAnalyzedProps()
public boolean isAggregated(String nodePath)
public boolean appliesTo(org.apache.jackrabbit.oak.api.Tree state)
true
if this rule applies to the given node
state
.state
- the state to check.true
the rule applies to the given node;
false
otherwise.public boolean appliesTo(String nodeTypeName)
public boolean isNodeNameIndexed()
public boolean isFulltextEnabled()
public boolean isNodeFullTextIndexed()
@CheckForNull public org.apache.jackrabbit.oak.plugins.index.lucene.PropertyDefinition getConfig(String propertyName)
propertyName
- name of a property.null
if this
indexing rule does not contain a configuration for the given
property.public boolean includePropertyType(int type)
public org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate getAggregate()
public boolean indexesAllNodesOfMatchingType()
public boolean isBasedOnNtBase()
Copyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.