public abstract class WrappedGraphQuery extends Object implements GraphQuery
Query.Compare| Modifier and Type | Field and Description |
|---|---|
protected GraphQuery |
query |
| Constructor and Description |
|---|
WrappedGraphQuery(GraphQuery query) |
| Modifier and Type | Method and Description |
|---|---|
abstract Iterable<Edge> |
edges()
Execute the query and return the matching edges.
|
GraphQuery |
has(String key)
Filter out elements that do not have a property with provided key.
|
GraphQuery |
has(String key,
Object value)
Filter out elements that do not have a property value equal to provided value.
|
GraphQuery |
has(String key,
Predicate compare,
Object value)
Filter out the element if it does not have a property with a comparable value.
|
<T extends Comparable<T>> |
has(String key,
T value,
Query.Compare compare)
Filter out the element if it does not have a property with a comparable value.
|
GraphQuery |
hasNot(String key)
Filter out elements that have a property with provided key.
|
GraphQuery |
hasNot(String key,
Object value)
Filter out elements that have a property value equal to provided value.
|
<T extends Comparable<?>> |
interval(String key,
T startValue,
T endValue)
Filter out the element of its property value is not within the provided interval.
|
GraphQuery |
limit(int limit)
Filter out the element if the take number of incident/adjacent elements to retrieve has already been reached.
|
abstract Iterable<Vertex> |
vertices()
Execute the query and return the vertices on the other end of the matching edges.
|
protected GraphQuery query
public WrappedGraphQuery(GraphQuery query)
public GraphQuery has(String key)
Queryhas in interface GraphQueryhas in interface Querykey - the key of the propertypublic GraphQuery hasNot(String key)
QueryhasNot in interface GraphQueryhasNot in interface Querykey - the key of the propertypublic GraphQuery has(String key, Object value)
Queryhas in interface GraphQueryhas in interface Querykey - the key of the propertyvalue - the value to check againstpublic GraphQuery hasNot(String key, Object value)
QueryhasNot in interface GraphQueryhasNot in interface Querykey - the key of the propertyvalue - the value to check againstpublic GraphQuery has(String key, Predicate compare, Object value)
Queryhas in interface GraphQueryhas in interface Querykey - the key of the propertycompare - the comparator to use for comparisonvalue - the value to check againstpublic <T extends Comparable<T>> GraphQuery has(String key, T value, Query.Compare compare)
Queryhas in interface GraphQueryhas in interface Querykey - the key of the propertyvalue - the value to check againstcompare - the comparator to use for comparisonpublic <T extends Comparable<?>> GraphQuery interval(String key, T startValue, T endValue)
Queryinterval in interface GraphQueryinterval in interface Querykey - the key of the propertystartValue - the inclusive start value of the intervalendValue - the exclusive end value of the intervalpublic GraphQuery limit(int limit)
Querylimit in interface GraphQuerylimit in interface Querylimit - the take number of elements to returnpublic abstract Iterable<Edge> edges()
QueryCopyright © 2010-2014. All Rights Reserved.