public interface TitanVertexQuery<Q extends TitanVertexQuery<Q>> extends BaseVertexQuery<Q>
TitanVertex.query() builds such a query against the vertex
this method is called on. This query builder provides the methods to specify which indicent edges or
properties to query for.BaseVertexQuery| Modifier and Type | Method and Description |
|---|---|
Q |
adjacent(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Restricts this query to only those edges that point to the given vertex.
|
default long |
count()
Returns the number of relations that match this query
|
Q |
direction(org.apache.tinkerpop.gremlin.structure.Direction d)
Query only for relations in the given direction.
|
default long |
edgeCount()
Returns the number of edges that match this query
|
Iterable<TitanEdge> |
edges()
Returns an iterable over all incident edges that match this query
|
Q |
has(String key)
Query for edges or properties that have defined property with the given key
|
Q |
has(String type,
Object value)
Query only for edges or properties that have an incident property or unidirected edge matching the given value.
|
Q |
has(String key,
TitanPredicate predicate,
Object value) |
Q |
hasNot(String key)
Query for edges or properties that DO NOT have a defined property with the given key
|
Q |
hasNot(String key,
Object value)
Identical to
BaseVertexQuery.has(String, Object) but negates the condition, i.e. |
<T extends Comparable<?>> |
interval(String key,
T start,
T end)
Query for those edges or properties that have a property for the given key
whose values lies in the interval by [start,end).
|
Q |
keys(String... keys)
Query for only those properties having one of the given property keys.
|
Q |
labels(String... labels)
Query for only those edges matching one of the given edge labels.
|
Q |
limit(int limit)
Sets the retrieval limit for this query.
|
Q |
orderBy(String key,
org.apache.tinkerpop.gremlin.process.traversal.Order order)
Orders the relation results of this query according
to their property for the given key in the given order (increasing/decreasing).
|
Iterable<TitanVertexProperty> |
properties()
Returns an iterable over all incident properties that match this query
|
default long |
propertyCount()
Returns the number of properties that match this query
|
Iterable<TitanRelation> |
relations()
Returns an iterable over all incident relations that match this query
|
Q |
types(RelationType... type)
Query for only those relations matching one of the given relation types.
|
Q |
types(String... type)
Query for only those relations matching one of the given relation types.
|
VertexList |
vertexIds()
Retrieves all vertices connected to this query's base vertex by edges
matching the conditions defined in this query.
|
Iterable<TitanVertex> |
vertices() |
Q adjacent(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
BaseVertexQueryadjacent in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>Q types(String... type)
BaseVertexQuerytypes in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>type - relation types to query forQ types(RelationType... type)
BaseVertexQuerytypes in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>type - relation types to query forQ labels(String... labels)
BaseVertexQuerylabels in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>labels - edge labels to query forQ keys(String... keys)
BaseVertexQuerykeys in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>keys - property keys to query forQ direction(org.apache.tinkerpop.gremlin.structure.Direction d)
BaseVertexQuerydirection in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>d - Direction to query forQ has(String type, Object value)
BaseVertexQueryEdgeLabel.isUnidirected()
and the query is restricted to edges or properties having an incident unidirectional edge pointing to the value which is
expected to be a TitanVertex.has in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>type - TitanType namevalue - Value for the property of the given key to match, or vertex to point unidirectional edge toQ has(String key)
BaseVertexQueryhas in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>Q hasNot(String key)
BaseVertexQueryhasNot in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>Q hasNot(String key, Object value)
BaseVertexQueryBaseVertexQuery.has(String, Object) but negates the condition, i.e. matches those edges or properties
that DO NOT satisfy this property condition.hasNot in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>Q has(String key, TitanPredicate predicate, Object value)
has in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>><T extends Comparable<?>> Q interval(String key, T start, T end)
BaseVertexQueryinterval in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>key - property keystart - value defining the start of the interval (inclusive)end - value defining the end of the interval (exclusive)Q limit(int limit)
BaseVertexQuerylimit in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>limit - maximum number of relations to retrieve for this queryQ orderBy(String key, org.apache.tinkerpop.gremlin.process.traversal.Order order)
BaseVertexQueryorderBy in interface BaseVertexQuery<Q extends TitanVertexQuery<Q>>key - The key of the properties on which to orderorder - the ordering directionIterable<TitanEdge> edges()
Iterable<TitanVertex> vertices()
Iterable<TitanVertexProperty> properties()
Iterable<TitanRelation> relations()
default long count()
default long edgeCount()
default long propertyCount()
VertexList vertexIds()
Copyright © 2012–2015. All rights reserved.