public interface ElementQuery<R extends JanusGraphElement,B extends BackendQuery<B>> extends Query, ProfileObservable
JanusGraphElement
s. This query can consist of multiple sub-queries that together
form the desired result set.Modifier and Type | Method and Description |
---|---|
Comparator<R> |
getSortOrder()
Returns the expected sort order of this query if any was specified.
|
BackendQueryHolder<B> |
getSubQuery(int position)
Returns the backend query at the given position that comprises this ElementQuery
|
boolean |
hasDuplicateResults()
Whether the combination of the individual sub-queries can result in duplicate
results.
|
boolean |
isEmpty()
Whether the result set of this query is empty
|
boolean |
isSorted()
Whether this query expects the results to be in a particular sort order.
|
boolean |
matches(R element)
Whether the given element matches the conditions of this query.
|
int |
numSubQueries()
Returns the number of sub-queries this query is comprised of.
|
getProfiler, observeWith, observeWith
boolean hasDuplicateResults()
boolean isEmpty()
int numSubQueries()
BackendQueryHolder<B> getSubQuery(int position)
position
- boolean matches(R element)
Used for result filtering if the result set returned by the query executor is not fitted.
element
- boolean isSorted()
Comparator<R> getSortOrder()
isSorted()
first.Copyright © 2012–2024. All rights reserved.