public class GraphCentricQuery extends BaseQuery implements ElementQuery<TitanElement,JointIndexQuery>, ProfileObservable
ElementQuery for TitanGraphQuery. This query contains
the condition, and only one sub-query JointIndexQuery.
It also maintains the ordering for the query result which is needed by the QueryProcessor
to correctly order the result.| Constructor and Description |
|---|
GraphCentricQuery(ElementCategory resultType,
Condition<TitanElement> condition,
OrderList orders,
BackendQueryHolder<JointIndexQuery> indexQuery,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
static GraphCentricQuery |
emptyQuery(ElementCategory resultType) |
boolean |
equals(Object other) |
Condition<TitanElement> |
getCondition() |
OrderList |
getOrder() |
ElementCategory |
getResultType() |
Comparator<TitanElement> |
getSortOrder()
Returns the expected sort order of this query if any was specified.
|
BackendQueryHolder<JointIndexQuery> |
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.
|
int |
hashCode() |
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(TitanElement element)
Whether the given element matches the conditions of this query.
|
int |
numSubQueries()
Returns the number of sub-queries this query is comprised of.
|
void |
observeWith(QueryProfiler profiler) |
String |
toString() |
getLimit, hasLimit, setLimitpublic GraphCentricQuery(ElementCategory resultType, Condition<TitanElement> condition, OrderList orders, BackendQueryHolder<JointIndexQuery> indexQuery, int limit)
public static final GraphCentricQuery emptyQuery(ElementCategory resultType)
public Condition<TitanElement> getCondition()
public ElementCategory getResultType()
public OrderList getOrder()
public boolean isEmpty()
ElementQueryisEmpty in interface ElementQuery<TitanElement,JointIndexQuery>public int numSubQueries()
ElementQuerynumSubQueries in interface ElementQuery<TitanElement,JointIndexQuery>public BackendQueryHolder<JointIndexQuery> getSubQuery(int position)
ElementQuerygetSubQuery in interface ElementQuery<TitanElement,JointIndexQuery>public boolean isSorted()
ElementQueryisSorted in interface ElementQuery<TitanElement,JointIndexQuery>public Comparator<TitanElement> getSortOrder()
ElementQueryElementQuery.isSorted() first.getSortOrder in interface ElementQuery<TitanElement,JointIndexQuery>public boolean hasDuplicateResults()
ElementQueryhasDuplicateResults in interface ElementQuery<TitanElement,JointIndexQuery>public boolean matches(TitanElement element)
ElementQuerymatches in interface ElementQuery<TitanElement,JointIndexQuery>public void observeWith(QueryProfiler profiler)
observeWith in interface ProfileObservableCopyright © 2012–2015. All rights reserved.