public class PropertyIndexLookup
extends java.lang.Object
NodeState root.
{
NodeState state = ... // get a node state
PropertyIndexLookup lookup = new PropertyIndexLookup(state);
Set<String> hits = lookup.find("foo", PropertyValues.newString("xyz"));
}
| Modifier and Type | Field and Description |
|---|---|
static double |
COST_OVERHEAD
The cost overhead to use the index in number of read operations.
|
| Constructor and Description |
|---|
PropertyIndexLookup(NodeState root) |
PropertyIndexLookup(NodeState root,
MountInfoProvider mountInfoProvider) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCost(Filter filter,
java.lang.String propertyName,
PropertyValue value) |
boolean |
isIndexed(java.lang.String propertyName,
java.lang.String path,
Filter filter)
Checks whether the named property is indexed somewhere along the given
path.
|
java.lang.Iterable<java.lang.String> |
query(Filter filter,
java.lang.String propertyName,
PropertyValue value) |
public static final double COST_OVERHEAD
public PropertyIndexLookup(NodeState root)
public PropertyIndexLookup(NodeState root, MountInfoProvider mountInfoProvider)
public boolean isIndexed(java.lang.String propertyName,
java.lang.String path,
Filter filter)
propertyName - property namepath - lookup pathfilter - for the node type restriction (null if no node type restriction)public java.lang.Iterable<java.lang.String> query(Filter filter, java.lang.String propertyName, PropertyValue value)
public double getCost(Filter filter, java.lang.String propertyName, PropertyValue value)
Copyright © 2010 - 2023 Adobe. All Rights Reserved