public abstract class WrapperVertexQuery extends Object implements VertexQuery
Query.Compare| Modifier and Type | Field and Description |
|---|---|
protected VertexQuery |
query |
| Constructor and Description |
|---|
WrapperVertexQuery(VertexQuery query) |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Execute the query and return the number of edges that are unfiltered.
|
VertexQuery |
direction(Direction direction)
The direction of the edges to retrieve.
|
abstract Iterable<Edge> |
edges()
Execute the query and return the matching edges.
|
VertexQuery |
has(String key)
Filter out elements that do not have a property with provided key.
|
VertexQuery |
has(String key,
Object value)
Filter out elements that do not have a property value equal to provided value.
|
VertexQuery |
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.
|
VertexQuery |
hasNot(String key)
Filter out elements that have a property with provided key.
|
VertexQuery |
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.
|
VertexQuery |
labels(String... labels)
Filter out the edge if its label is not in set of provided labels.
|
VertexQuery |
limit(int limit)
Filter out the element if the take number of incident/adjacent elements to retrieve has already been reached.
|
Object |
vertexIds()
Return the raw ids of the vertices on the other end of the edges.
|
abstract Iterable<Vertex> |
vertices()
Execute the query and return the vertices on the other end of the matching edges.
|
protected VertexQuery query
public WrapperVertexQuery(VertexQuery query)
public VertexQuery has(String key)
Queryhas in interface Queryhas in interface VertexQuerykey - the key of the propertypublic VertexQuery hasNot(String key)
QueryhasNot in interface QueryhasNot in interface VertexQuerykey - the key of the propertypublic VertexQuery has(String key, Object value)
Queryhas in interface Queryhas in interface VertexQuerykey - the key of the propertyvalue - the value to check againstpublic VertexQuery hasNot(String key, Object value)
QueryhasNot in interface QueryhasNot in interface VertexQuerykey - the key of the propertyvalue - the value to check againstpublic VertexQuery has(String key, Predicate compare, Object value)
Queryhas in interface Queryhas in interface VertexQuerykey - the key of the propertycompare - the comparator to use for comparisonvalue - the value to check againstpublic <T extends Comparable<T>> VertexQuery has(String key, T value, Query.Compare compare)
Queryhas in interface Queryhas in interface VertexQuerykey - the key of the propertyvalue - the value to check againstcompare - the comparator to use for comparisonpublic <T extends Comparable<?>> VertexQuery interval(String key, T startValue, T endValue)
Queryinterval in interface Queryinterval in interface VertexQuerykey - the key of the propertystartValue - the inclusive start value of the intervalendValue - the exclusive end value of the intervalpublic VertexQuery direction(Direction direction)
VertexQuerydirection in interface VertexQuerydirection - whether to retrieve the incoming, outgoing, or both directionspublic VertexQuery limit(int limit)
Querylimit in interface Querylimit in interface VertexQuerylimit - the take number of elements to returnpublic VertexQuery labels(String... labels)
VertexQuerylabels in interface VertexQuerylabels - the labels to check againstpublic long count()
VertexQuerycount in interface VertexQuerypublic Object vertexIds()
VertexQueryvertexIds in interface VertexQuerypublic abstract Iterable<Edge> edges()
QueryCopyright © 2010-2014. All Rights Reserved.