public class GraphCentricQueryBuilder extends Object implements JanusGraphQuery<GraphCentricQueryBuilder>
JanusGraphQuery, optimizes the query and compiles the result into a GraphCentricQuery which
is then executed through a QueryProcessor.| Constructor and Description |
|---|
GraphCentricQueryBuilder(StandardJanusGraphTx tx,
IndexSerializer serializer,
IndexSelectionStrategy indexSelector) |
public GraphCentricQueryBuilder(StandardJanusGraphTx tx, IndexSerializer serializer, IndexSelectionStrategy indexSelector)
public void disableSmartLimit()
public List<PredicateCondition<String,JanusGraphElement>> getConstraints()
public GraphCentricQueryBuilder profiler(QueryProfiler profiler)
public GraphCentricQueryBuilder has(String key, JanusGraphPredicate predicate, Object condition)
JanusGraphQueryhas in interface JanusGraphQuery<GraphCentricQueryBuilder>key - Key that identifies the propertypredicate - Relation between property and conditionpublic GraphCentricQueryBuilder has(PropertyKey key, JanusGraphPredicate predicate, Object condition)
public GraphCentricQueryBuilder has(String key)
has in interface JanusGraphQuery<GraphCentricQueryBuilder>public GraphCentricQueryBuilder hasNot(String key)
hasNot in interface JanusGraphQuery<GraphCentricQueryBuilder>public GraphCentricQueryBuilder has(String key, Object value)
has in interface JanusGraphQuery<GraphCentricQueryBuilder>public GraphCentricQueryBuilder hasNot(String key, Object value)
hasNot in interface JanusGraphQuery<GraphCentricQueryBuilder>public <T extends Comparable<?>> GraphCentricQueryBuilder interval(String s, T t1, T t2)
interval in interface JanusGraphQuery<GraphCentricQueryBuilder>public GraphCentricQueryBuilder limit(int limit)
JanusGraphQuerylimit in interface JanusGraphQuery<GraphCentricQueryBuilder>limit - The maximum number of results to returnpublic GraphCentricQueryBuilder orderBy(String keyName, org.apache.tinkerpop.gremlin.process.traversal.Order order)
JanusGraphQueryorderBy in interface JanusGraphQuery<GraphCentricQueryBuilder>keyName - The key of the properties on which to orderorder - the ordering directionpublic GraphCentricQueryBuilder or(Collection<GraphCentricQueryBuilder> subQueries)
or in interface JanusGraphQuery<GraphCentricQueryBuilder>public Iterable<JanusGraphVertex> vertices()
JanusGraphQueryvertices in interface JanusGraphQuery<GraphCentricQueryBuilder>public Iterable<JanusGraphEdge> edges()
JanusGraphQueryedges in interface JanusGraphQuery<GraphCentricQueryBuilder>public Iterable<JanusGraphVertexProperty> properties()
JanusGraphQueryproperties in interface JanusGraphQuery<GraphCentricQueryBuilder>public <E extends JanusGraphElement> Iterable<E> iterables(GraphCentricQuery query, Class<E> aClass)
public GraphCentricQuery constructQuery(ElementCategory resultType)
public GraphCentricQuery constructQueryWithoutProfile(ElementCategory resultType)
Copyright © 2012–2023. All rights reserved.