public class PropertyIndexLookup extends Object
NodeState
root.
{
NodeState state = ... // get a node state
PropertyIndexLookup lookup = new PropertyIndexLookup(state);
Set hits = lookup.find("foo", PropertyValues.newString("xyz"));
}
Constructor and Description |
---|
PropertyIndexLookup(NodeState root) |
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 PropertyIndexLookup(NodeState root)
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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"