public class PropertyIndexLookup extends 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,
String propertyName,
PropertyValue value) |
boolean |
isIndexed(String propertyName,
String path,
Filter filter)
Checks whether the named property is indexed somewhere along the given
path.
|
Iterable<String> |
query(Filter filter,
String propertyName,
PropertyValue value) |
public static final double COST_OVERHEAD
public PropertyIndexLookup(NodeState root)
public PropertyIndexLookup(NodeState root, MountInfoProvider mountInfoProvider)
public boolean isIndexed(String propertyName, String path, Filter filter)
propertyName - property namepath - lookup pathfilter - for the node type restriction (null if no node type restriction)public Iterable<String> query(Filter filter, String propertyName, PropertyValue value)
public double getCost(Filter filter, String propertyName, PropertyValue value)
Copyright © 2010 - 2020 Adobe. All Rights Reserved