public interface Query
| 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) |
QueryResultsIterable<Vertex> vertices()
QueryResultsIterable<Vertex> vertices(EnumSet<FetchHint> fetchHints)
QueryResultsIterable<Edge> edges()
QueryResultsIterable<Edge> edges(EnumSet<FetchHint> fetchHints)
@Deprecated QueryResultsIterable<Edge> edges(String label)
@Deprecated QueryResultsIterable<Edge> edges(String label, EnumSet<FetchHint> fetchHints)
QueryResultsIterable<Element> elements()
QueryResultsIterable<Element> elements(EnumSet<FetchHint> fetchHints)
<T> Query range(String propertyName, T startValue, T endValue)
propertyName - Name of property.startValue - Inclusive start value.endValue - Inclusive end value.<T> Query range(String propertyName, T startValue, boolean inclusiveStartValue, T endValue, boolean inclusiveEndValue)
propertyName - Name of property.startValue - Inclusive start value.inclusiveStartValue - true, to include the start valueendValue - Inclusive end value.inclusiveEndValue - true, to include the end value<T> Query hasEdgeLabel(String... edgeLabels)
edgeLabels - The edge labels to filter on.<T> Query hasEdgeLabel(Collection<String> edgeLabels)
edgeLabels - The edge labels to filter on.<T> Query has(String propertyName, T value)
Compare.EQUAL filter to the query.propertyName - The name of the property to query on.value - The value of the property to query for.<T> Query hasNot(String propertyName, T value)
Contains.NOT_IN filter to the query.propertyName - The name of the property to query on.value - The value of the property to query for.Query has(String propertyName)
propertyName - The name of the property the element must contain.Query hasNot(String propertyName)
propertyName - The name of the property the element must not contain.<T> Query has(String propertyName, Predicate predicate, T value)
propertyName - The name of the property to query on.predicate - One of Compare,
TextPredicate,
or GeoCompare.value - The value of the property to query for.Query skip(int count)
Query limit(Integer count)
Query sort(String propertyName, SortDirection direction)
propertyName - The property to sort by.direction - The direction to sort.boolean isAggregationSupported(Aggregation aggregation)
aggregation - the aggregation to test.Query addAggregation(Aggregation aggregation)
aggregation - the aggregation to add.Iterable<Aggregation> getAggregations()
Copyright © 2014–2017. All rights reserved.