| Constructor and Description |
|---|
CompositeGraphQuery(Collection<Query> queries) |
CompositeGraphQuery(Query... queries) |
| Modifier and Type | Method and Description |
|---|---|
Query |
addAggregation(Aggregation aggregation)
Add an aggregation to the query
|
QueryResultsIterable<Edge> |
edges() |
QueryResultsIterable<Edge> |
edges(EnumSet<FetchHint> fetchHints) |
QueryResultsIterable<Edge> |
edges(String label)
Deprecated.
|
QueryResultsIterable<Edge> |
edges(String label,
EnumSet<FetchHint> fetchHints)
Deprecated.
|
QueryResultsIterable<Element> |
elements() |
QueryResultsIterable<Element> |
elements(EnumSet<FetchHint> fetchHints) |
Iterable<Aggregation> |
getAggregations()
Gets the added aggregations
|
Query |
has(String propertyName)
Adds a has filter to the query.
|
<T> Query |
has(String propertyName,
Predicate predicate,
T value)
Adds a filter to the query.
|
<T> Query |
has(String propertyName,
T value)
Adds an
Compare.EQUAL filter to the query. |
<T> Query |
hasEdgeLabel(Collection<String> edgeLabels)
Adds a edge label filter to the query.
|
<T> Query |
hasEdgeLabel(String... edgeLabels)
Adds a edge label filter to the query.
|
Query |
hasNot(String propertyName)
Adds a hasNot filter to the query.
|
<T> Query |
hasNot(String propertyName,
T value)
Adds an
Contains.NOT_IN filter to the query. |
boolean |
isAggregationSupported(Aggregation aggregation)
Test to see if aggregation is supported.
|
Query |
limit(Integer count)
Limits the number of items returned.
|
Query |
limit(Long count)
Limits the number of items returned.
|
<T> Query |
range(String propertyName,
T startValue,
boolean inclusiveStartValue,
T endValue,
boolean inclusiveEndValue)
Queries for properties in the given range.
|
<T> Query |
range(String propertyName,
T startValue,
T endValue)
Queries for properties in the given range.
|
Query |
skip(int count)
Skips the given number of items.
|
Query |
sort(String propertyName,
SortDirection direction)
Sort the results by the given property name.
|
QueryResultsIterable<Vertex> |
vertices() |
QueryResultsIterable<Vertex> |
vertices(EnumSet<FetchHint> fetchHints) |
public CompositeGraphQuery(Query... queries)
public CompositeGraphQuery(Collection<Query> queries)
public QueryResultsIterable<Vertex> vertices()
public QueryResultsIterable<Vertex> vertices(EnumSet<FetchHint> fetchHints)
public QueryResultsIterable<Edge> edges()
public QueryResultsIterable<Edge> edges(EnumSet<FetchHint> fetchHints)
@Deprecated public QueryResultsIterable<Edge> edges(String label)
@Deprecated public QueryResultsIterable<Edge> edges(String label, EnumSet<FetchHint> fetchHints)
public QueryResultsIterable<Element> elements()
public QueryResultsIterable<Element> elements(EnumSet<FetchHint> fetchHints)
public <T> Query range(String propertyName, T startValue, T endValue)
Querypublic <T> Query range(String propertyName, T startValue, boolean inclusiveStartValue, T endValue, boolean inclusiveEndValue)
Querypublic <T> Query hasEdgeLabel(String... edgeLabels)
QueryhasEdgeLabel in interface QueryedgeLabels - The edge labels to filter on.public <T> Query hasEdgeLabel(Collection<String> edgeLabels)
QueryhasEdgeLabel in interface QueryedgeLabels - The edge labels to filter on.public <T> Query has(String propertyName, T value)
QueryCompare.EQUAL filter to the query.public <T> Query hasNot(String propertyName, T value)
QueryContains.NOT_IN filter to the query.public <T> Query has(String propertyName, Predicate predicate, T value)
Queryhas in interface QuerypropertyName - The name of the property to query on.predicate - One of Compare,
TextPredicate,
or GeoCompare.value - The value of the property to query for.public Query has(String propertyName)
Querypublic Query hasNot(String propertyName)
Querypublic Query skip(int count)
Querypublic Query limit(Integer count)
Querypublic Query limit(Long count)
Querypublic Query sort(String propertyName, SortDirection direction)
Querypublic boolean isAggregationSupported(Aggregation aggregation)
QueryisAggregationSupported in interface Queryaggregation - the aggregation to test.public Query addAggregation(Aggregation aggregation)
QueryaddAggregation in interface Queryaggregation - the aggregation to add.public Iterable<Aggregation> getAggregations()
QuerygetAggregations in interface QueryCopyright © 2014–2017. All rights reserved.