Class PropertyIndexLookup
java.lang.Object
org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexLookup
Is responsible for querying the property index content.
This class can be used directly on a subtree where there is an index defined by supplying a
This class can be used directly on a subtree where there is an index defined by supplying a
NodeState
root.
{
NodeState state = ... // get a node state
PropertyIndexLookup lookup = new PropertyIndexLookup(state);
Set<String> hits = lookup.find("foo", PropertyValues.newString("xyz"));
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
The cost overhead to use the index in number of read operations. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyIndexLookup
(NodeState root) PropertyIndexLookup
(NodeState root, MountInfoProvider mountInfoProvider) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getCost
(Filter filter, String propertyName, PropertyValue value) boolean
Checks whether the named property is indexed somewhere along the given path.query
(Filter filter, String propertyName, PropertyValue value)
-
Field Details
-
COST_OVERHEAD
public static final double COST_OVERHEADThe cost overhead to use the index in number of read operations.- See Also:
-
-
Constructor Details
-
PropertyIndexLookup
-
PropertyIndexLookup
-
-
Method Details
-
isIndexed
Checks whether the named property is indexed somewhere along the given path. Lookup starts at the current path (at the root of this object) and traverses down the path.- Parameters:
propertyName
- property namepath
- lookup pathfilter
- for the node type restriction (null if no node type restriction)- Returns:
- true if the property is indexed
-
query
-
getCost
-