public class GraphCentricQueryBuilder extends Object implements TitanGraphQuery<GraphCentricQueryBuilder>
TitanGraphQuery, optimizes the query and compiles the result into a GraphCentricQuery which
is then executed through a QueryProcessor.| Constructor and Description |
|---|
GraphCentricQueryBuilder(StandardTitanTx tx,
IndexSerializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
GraphCentricQuery |
constructQuery(ElementCategory resultType) |
QueryDescription |
describeForEdges()
Returns a description of this query for edges as a
QueryDescription object. |
QueryDescription |
describeForProperties()
Returns a description of this query for properties as a
QueryDescription object. |
QueryDescription |
describeForVertices()
Returns a description of this query for vertices as a
QueryDescription object. |
Iterable<com.tinkerpop.blueprints.Edge> |
edges()
Returns all edges that match the conditions.
|
GraphCentricQueryBuilder |
has(PropertyKey key,
TitanPredicate predicate,
Object condition)
The returned element must have a property for the given key that matches the condition according to the
specified relation
|
GraphCentricQueryBuilder |
has(String key) |
GraphCentricQueryBuilder |
has(String key,
Object value) |
GraphCentricQueryBuilder |
has(String key,
com.tinkerpop.blueprints.Predicate predicate,
Object condition)
The returned element must have a property for the given key that matches the condition according to the
specified relation
|
<T extends Comparable<T>> |
has(String s,
T t,
com.tinkerpop.blueprints.Query.Compare compare)
Deprecated.
|
GraphCentricQueryBuilder |
hasNot(String key) |
GraphCentricQueryBuilder |
hasNot(String key,
Object value) |
static Condition<TitanElement> |
indexCover(ExternalIndexType index,
Condition<TitanElement> condition,
IndexSerializer indexInfo,
Set<Condition> covered) |
static Object[] |
indexCover(InternalIndexType index,
Condition<TitanElement> condition,
Set<Condition> covered) |
static boolean |
indexCoversOrder(ExternalIndexType index,
OrderList orders) |
<T extends Comparable<?>> |
interval(String s,
T t1,
T t2) |
GraphCentricQueryBuilder |
limit(int limit)
Limits the size of the returned result set
|
GraphCentricQueryBuilder |
orderBy(PropertyKey key,
Order order)
Orders the element results of this query according
to their property for the given key in the given order (increasing/decreasing).
|
GraphCentricQueryBuilder |
orderBy(String key,
Order order)
Orders the element results of this query according
to their property for the given key in the given order (increasing/decreasing).
|
Iterable<TitanProperty> |
properties()
Returns all properties that match the conditions
|
Iterable<com.tinkerpop.blueprints.Vertex> |
vertices()
Returns all vertices that match the conditions.
|
public GraphCentricQueryBuilder(StandardTitanTx tx, IndexSerializer serializer)
public GraphCentricQueryBuilder has(String key, com.tinkerpop.blueprints.Predicate predicate, Object condition)
TitanGraphQueryhas in interface TitanGraphQuery<GraphCentricQueryBuilder>has in interface com.tinkerpop.blueprints.GraphQueryhas in interface com.tinkerpop.blueprints.Querykey - Key that identifies the propertypredicate - Predicate between property and conditionpublic GraphCentricQueryBuilder has(PropertyKey key, TitanPredicate predicate, Object condition)
TitanGraphQueryhas in interface TitanGraphQuery<GraphCentricQueryBuilder>key - Key that identifies the propertypredicate - Relation between property and conditionpublic GraphCentricQueryBuilder has(String key)
has in interface TitanGraphQuery<GraphCentricQueryBuilder>has in interface com.tinkerpop.blueprints.GraphQueryhas in interface com.tinkerpop.blueprints.Querypublic GraphCentricQueryBuilder hasNot(String key)
hasNot in interface TitanGraphQuery<GraphCentricQueryBuilder>hasNot in interface com.tinkerpop.blueprints.GraphQueryhasNot in interface com.tinkerpop.blueprints.Query@Deprecated public <T extends Comparable<T>> GraphCentricQueryBuilder has(String s, T t, com.tinkerpop.blueprints.Query.Compare compare)
has in interface TitanGraphQuery<GraphCentricQueryBuilder>has in interface com.tinkerpop.blueprints.GraphQueryhas in interface com.tinkerpop.blueprints.Querypublic GraphCentricQueryBuilder has(String key, Object value)
has in interface TitanGraphQuery<GraphCentricQueryBuilder>has in interface com.tinkerpop.blueprints.GraphQueryhas in interface com.tinkerpop.blueprints.Querypublic GraphCentricQueryBuilder hasNot(String key, Object value)
hasNot in interface TitanGraphQuery<GraphCentricQueryBuilder>hasNot in interface com.tinkerpop.blueprints.GraphQueryhasNot in interface com.tinkerpop.blueprints.Querypublic <T extends Comparable<?>> GraphCentricQueryBuilder interval(String s, T t1, T t2)
interval in interface TitanGraphQuery<GraphCentricQueryBuilder>interval in interface com.tinkerpop.blueprints.GraphQueryinterval in interface com.tinkerpop.blueprints.Querypublic GraphCentricQueryBuilder limit(int limit)
TitanGraphQuerylimit in interface TitanGraphQuery<GraphCentricQueryBuilder>limit in interface com.tinkerpop.blueprints.GraphQuerylimit in interface com.tinkerpop.blueprints.Querylimit - The maximum number of results to returnpublic GraphCentricQueryBuilder orderBy(String key, Order order)
TitanGraphQueryorderBy in interface TitanGraphQuery<GraphCentricQueryBuilder>key - The key of the properties on which to orderorder - the ordering directionpublic GraphCentricQueryBuilder orderBy(PropertyKey key, Order order)
TitanGraphQueryorderBy in interface TitanGraphQuery<GraphCentricQueryBuilder>key - The key of the properties on which to orderorder - the ordering directionpublic Iterable<com.tinkerpop.blueprints.Vertex> vertices()
TitanGraphQueryvertices in interface TitanGraphQuery<GraphCentricQueryBuilder>vertices in interface com.tinkerpop.blueprints.Querypublic Iterable<com.tinkerpop.blueprints.Edge> edges()
TitanGraphQueryedges in interface TitanGraphQuery<GraphCentricQueryBuilder>edges in interface com.tinkerpop.blueprints.Querypublic Iterable<TitanProperty> properties()
TitanGraphQueryproperties in interface TitanGraphQuery<GraphCentricQueryBuilder>public QueryDescription describeForVertices()
TitanGraphQueryQueryDescription object.
This can be used to inspect the query plan for this query. Note, that calling this method
does not actually execute the query but only optimizes it and constructs a query plan.describeForVertices in interface TitanGraphQuery<GraphCentricQueryBuilder>public QueryDescription describeForEdges()
TitanGraphQueryQueryDescription object.
This can be used to inspect the query plan for this query. Note, that calling this method
does not actually execute the query but only optimizes it and constructs a query plan.describeForEdges in interface TitanGraphQuery<GraphCentricQueryBuilder>public QueryDescription describeForProperties()
TitanGraphQueryQueryDescription object.
This can be used to inspect the query plan for this query. Note, that calling this method
does not actually execute the query but only optimizes it and constructs a query plan.describeForProperties in interface TitanGraphQuery<GraphCentricQueryBuilder>public GraphCentricQuery constructQuery(ElementCategory resultType)
public static final boolean indexCoversOrder(ExternalIndexType index, OrderList orders)
public static final Object[] indexCover(InternalIndexType index, Condition<TitanElement> condition, Set<Condition> covered)
public static final Condition<TitanElement> indexCover(ExternalIndexType index, Condition<TitanElement> condition, IndexSerializer indexInfo, Set<Condition> covered)
Copyright © 2012–2014. All rights reserved.