public class DefaultVertexQuery extends DefaultQuery implements VertexQuery
DefaultQuery.HasContainerQuery.Compare| Modifier and Type | Field and Description |
|---|---|
protected Vertex |
vertex |
direction, hasContainers, labels, limit| Constructor and Description |
|---|
DefaultVertexQuery(Vertex vertex) |
| 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.
|
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 predicate,
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.
|
Iterable<Vertex> |
vertices()
Execute the query and return the vertices on the other end of the matching edges.
|
protected final Vertex vertex
public DefaultVertexQuery(Vertex vertex)
public VertexQuery has(String key)
Queryhas in interface Queryhas in interface VertexQueryhas in class DefaultQuerykey - the key of the propertypublic VertexQuery hasNot(String key)
QueryhasNot in interface QueryhasNot in interface VertexQueryhasNot in class DefaultQuerykey - the key of the propertypublic VertexQuery has(String key, Object value)
Queryhas in interface Queryhas in interface VertexQueryhas in class DefaultQuerykey - the key of the propertyvalue - the value to check againstpublic VertexQuery hasNot(String key, Object value)
QueryhasNot in interface QueryhasNot in interface VertexQueryhasNot in class DefaultQuerykey - the key of the propertyvalue - the value to check againstpublic VertexQuery has(String key, Predicate predicate, Object value)
Queryhas in interface Queryhas in interface VertexQueryhas in class DefaultQuerykey - the key of the propertypredicate - 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 VertexQueryhas in class DefaultQuerykey - 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 VertexQueryinterval in class DefaultQuerykey - the key of the propertystartValue - the inclusive start value of the intervalendValue - the exclusive end value of the intervalpublic VertexQuery limit(int limit)
Querylimit in interface Querylimit in interface VertexQuerylimit in class DefaultQuerylimit - the take number of elements to returnpublic VertexQuery direction(Direction direction)
VertexQuerydirection in interface VertexQuerydirection - whether to retrieve the incoming, outgoing, or both directionspublic VertexQuery labels(String... labels)
VertexQuerylabels in interface VertexQuerylabels - the labels to check againstpublic Iterable<Edge> edges()
Querypublic Iterable<Vertex> vertices()
Querypublic long count()
VertexQuerycount in interface VertexQuerypublic Object vertexIds()
VertexQueryvertexIds in interface VertexQueryCopyright © 2010-2014. All Rights Reserved.