public interface Query
| Modifier and Type | Method and Description |
|---|---|
Query |
addAggregation(Aggregation aggregation)
Add an aggregation to the query
|
QueryResultsIterable<String> |
edgeIds()
Execute the query and return the ids of all matching edges.
|
QueryResultsIterable<String> |
edgeIds(EnumSet<IdFetchHint> fetchHints)
Execute the query and return the ids of all matching edges.
|
QueryResultsIterable<Edge> |
edges() |
QueryResultsIterable<Edge> |
edges(FetchHints fetchHints) |
QueryResultsIterable<Edge> |
edges(String label)
Deprecated.
|
QueryResultsIterable<Edge> |
edges(String label,
FetchHints fetchHints)
Deprecated.
|
QueryResultsIterable<String> |
elementIds()
Execute the query and return the ids of all matching elements.
|
QueryResultsIterable<String> |
elementIds(EnumSet<IdFetchHint> fetchHints)
Execute the query and return the ids of all matching elements.
|
QueryResultsIterable<Element> |
elements() |
QueryResultsIterable<Element> |
elements(FetchHints fetchHints) |
QueryResultsIterable<ExtendedDataRowId> |
extendedDataRowIds()
Execute the query and return the ids of all matching extended data rows.
|
QueryResultsIterable<ExtendedDataRowId> |
extendedDataRowIds(EnumSet<IdFetchHint> fetchHints)
Execute the query and return the ids of all matching extended data rows.
|
QueryResultsIterable<ExtendedDataRow> |
extendedDataRows() |
QueryResultsIterable<ExtendedDataRow> |
extendedDataRows(FetchHints fetchHints) |
Iterable<Aggregation> |
getAggregations()
Gets the added aggregations
|
<T extends Value> |
has(Class<T> dataType)
Adds a has filter to the query.
|
<T extends Value,K extends Value> |
has(Class<T> dataType,
Predicate predicate,
K value)
Adds a filter to the query.
|
<T> Query |
has(Iterable<String> propertyNames)
Adds a filter to the query.
|
<T extends Value> |
has(Iterable<String> propertyNames,
Predicate predicate,
T value)
Adds a filter to the query.
|
Query |
has(String propertyName)
Adds a has filter to the query.
|
<T extends Value> |
has(String propertyName,
Predicate predicate,
Conjunction conjunction,
T value)
Adds a filter to the query.
|
<T extends Value> |
has(String propertyName,
Predicate predicate,
T value)
Adds a filter to the query.
|
<T extends Value> |
has(String propertyName,
T value)
Adds an
Compare.EQUAL filter to the query. |
Query |
hasAuthorization(Iterable<String> authorizations)
Adds an authorization filter to the query.
|
Query |
hasAuthorization(String... authorizations)
Adds an authorization filter to the query.
|
Query |
hasConceptType(Collection<String> conceptTypes) |
Query |
hasConceptType(String... conceptTypes) |
Query |
hasEdgeLabel(Collection<String> edgeLabels)
Adds a edge label filter to the query.
|
Query |
hasEdgeLabel(String... edgeLabels)
Adds a edge label filter to the query.
|
Query |
hasExtendedData(ElementType elementType,
String elementId)
Adds a extended data element filter to the query.
|
Query |
hasExtendedData(ElementType elementType,
String elementId,
String tableName)
Adds a extended data element filter to the query.
|
Query |
hasExtendedData(Iterable<HasExtendedDataFilter> filters)
Adds a multiple extended data element filter to the query.
|
Query |
hasExtendedData(String tableName)
Adds a extended data table filter to the query.
|
Query |
hasId(Iterable<String> ids)
Adds an id filter to the query.
|
Query |
hasId(String... ids)
Adds an id filter to the query.
|
<T extends Value> |
hasNot(Class<T> dataType)
Adds a hasNot filter to the query.
|
<T> Query |
hasNot(Iterable<String> propertyNames)
Adds a filter to the query.
|
Query |
hasNot(String propertyName)
Adds a hasNot filter to the query.
|
<T extends Value> |
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.
|
Query |
minScore(double score)
Minimum score to return
|
<T extends Value> |
range(String propertyName,
T startValue,
boolean inclusiveStartValue,
T endValue,
boolean inclusiveEndValue)
Queries for properties in the given range.
|
<T extends Value> |
range(String propertyName,
T startValue,
T endValue)
Queries for properties in the given range.
|
Query |
scoringStrategy(ScoringStrategy scoringStrategy)
Sets the scoring strategy for this query
|
QueryResultsIterable<? extends GeObject> |
search() |
QueryResultsIterable<? extends GeObject> |
search(EnumSet<GeObjectType> objectTypes,
FetchHints fetchHints) |
Query |
setShard(String shardId) |
Query |
skip(int count)
Skips the given number of items.
|
Query |
sort(SortingStrategy sortingStrategy,
SortDirection direction)
Sort the results by the given
SortingStrategy. |
Query |
sort(String propertyName,
SortDirection direction)
Sort the results by the given property name.
|
QueryResultsIterable<String> |
vertexIds()
Execute the query and return the ids of all matching vertices.
|
QueryResultsIterable<String> |
vertexIds(EnumSet<IdFetchHint> fetchHints)
Execute the query and return the ids of all matching vertices.
|
QueryResultsIterable<Vertex> |
vertices() |
QueryResultsIterable<Vertex> |
vertices(FetchHints fetchHints) |
QueryResultsIterable<Vertex> vertices()
QueryResultsIterable<Vertex> vertices(FetchHints fetchHints)
QueryResultsIterable<String> vertexIds()
QueryResultsIterable<String> vertexIds(EnumSet<IdFetchHint> fetchHints)
fetchHints - Details about which data to fetch.QueryResultsIterable<Edge> edges()
QueryResultsIterable<Edge> edges(FetchHints fetchHints)
QueryResultsIterable<String> edgeIds()
QueryResultsIterable<String> edgeIds(EnumSet<IdFetchHint> fetchHints)
fetchHints - Details about which data to fetch.QueryResultsIterable<ExtendedDataRow> extendedDataRows()
QueryResultsIterable<ExtendedDataRow> extendedDataRows(FetchHints fetchHints)
QueryResultsIterable<ExtendedDataRowId> extendedDataRowIds()
QueryResultsIterable<ExtendedDataRowId> extendedDataRowIds(EnumSet<IdFetchHint> fetchHints)
fetchHints - Details about which data to fetch.@Deprecated QueryResultsIterable<Edge> edges(String label)
@Deprecated QueryResultsIterable<Edge> edges(String label, FetchHints fetchHints)
QueryResultsIterable<Element> elements()
QueryResultsIterable<Element> elements(FetchHints fetchHints)
QueryResultsIterable<String> elementIds()
QueryResultsIterable<String> elementIds(EnumSet<IdFetchHint> fetchHints)
QueryResultsIterable<? extends GeObject> search(EnumSet<GeObjectType> objectTypes, FetchHints fetchHints)
QueryResultsIterable<? extends GeObject> search()
<T extends Value> Query range(String propertyName, T startValue, T endValue)
propertyName - Name of property.startValue - Inclusive start value.endValue - Inclusive end value.<T extends Value> 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 valueQuery hasId(String... ids)
ids - The ids to filter on.Query hasId(Iterable<String> ids)
ids - The ids to filter on.Query hasEdgeLabel(String... edgeLabels)
edgeLabels - The edge labels to filter on.Query hasConceptType(Collection<String> conceptTypes)
Query hasEdgeLabel(Collection<String> edgeLabels)
edgeLabels - The edge labels to filter on.Query hasAuthorization(String... authorizations)
authorizations - An element will match if it or any of its properties use one of the specified authorizations.Query hasAuthorization(Iterable<String> authorizations)
authorizations - An element will match if it or any of its properties use one of the specified authorizations.Query hasExtendedData(ElementType elementType, String elementId)
elementType - The type of element.elementId - The element idQuery hasExtendedData(ElementType elementType, String elementId, String tableName)
elementType - The type of element. null to search all element types.elementId - The element id. null to search all elements.tableName - The table name. null to search all tables.Query hasExtendedData(Iterable<HasExtendedDataFilter> filters)
filters - The list of filters to be or'ed together.Query hasExtendedData(String tableName)
tableName - The table name<T extends Value> 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 extends Value> 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.<T> Query has(Iterable<String> propertyNames)
propertyNames - A document will match if it contains any properties specified.Query hasNot(String propertyName)
propertyName - The name of the property the element must not contain.<T> Query hasNot(Iterable<String> propertyNames)
propertyNames - A document will match if it does not contain any properties specified.<T extends Value> 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.<T extends Value> Query has(String propertyName, Predicate predicate, Conjunction conjunction, T value)
propertyName - The name of the property to query on.predicate - One of Compare,
TextPredicate,
or GeoCompare.conjunction - AND/ORvalue - The value of the property to query for.<T extends Value> Query has(Iterable<String> propertyNames, Predicate predicate, T value)
propertyNames - All properties to query on. A match in any of the given properties will cause a document to match.predicate - One of Compare,
TextPredicate,
or GeoCompare.value - The value of the property to query for.<T extends Value,K extends Value> Query has(Class<T> dataType, Predicate predicate, K value)
dataType - All properties with a matching datatype will be queried on. A match in any of the selected properties will cause a document to match.predicate - One of Compare,
TextPredicate,
or GeoCompare.value - The value of the property to query for.<T extends Value> Query has(Class<T> dataType)
dataType - A document will match if it contains any properties of the specified datatype.<T extends Value> Query hasNot(Class<T> dataType)
dataType - A document will match if it does not contain any properties of the specified datatype.Query skip(int count)
Query limit(Integer count)
Query minScore(double score)
Query sort(String propertyName, SortDirection direction)
propertyName - The property to sort by.direction - The direction to sort.Query sort(SortingStrategy sortingStrategy, SortDirection direction)
SortingStrategy.sortingStrategy - The SortingStrategy 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()
Query scoringStrategy(ScoringStrategy scoringStrategy)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.