public class IndexQuery extends BaseQuery implements BackendQuery<IndexQuery>
IndexProvider
.
A query is comprised of the store identifier against which the query ought to be executed and a query condition which defines which entries match the query.
Modifier and Type | Class and Description |
---|---|
static class |
IndexQuery.OrderEntry |
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableList<IndexQuery.OrderEntry> |
NO_ORDER |
Constructor and Description |
---|
IndexQuery(String store,
Condition condition) |
IndexQuery(String store,
Condition condition,
com.google.common.collect.ImmutableList<IndexQuery.OrderEntry> orders) |
IndexQuery(String store,
Condition condition,
com.google.common.collect.ImmutableList<IndexQuery.OrderEntry> orders,
int limit) |
IndexQuery(String store,
Condition condition,
int limit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Condition<JanusGraphElement> |
getCondition() |
List<IndexQuery.OrderEntry> |
getOrder() |
String |
getStore() |
int |
hashCode() |
IndexQuery |
setLimit(int limit)
Sets the limit of the query if it wasn't specified in the constructor
|
String |
toString() |
IndexQuery |
updateLimit(int newLimit)
Creates a new query identical to the current one but with the specified limit.
|
public static final com.google.common.collect.ImmutableList<IndexQuery.OrderEntry> NO_ORDER
public IndexQuery(String store, Condition condition, com.google.common.collect.ImmutableList<IndexQuery.OrderEntry> orders, int limit)
public IndexQuery(String store, Condition condition, com.google.common.collect.ImmutableList<IndexQuery.OrderEntry> orders)
public Condition<JanusGraphElement> getCondition()
public List<IndexQuery.OrderEntry> getOrder()
public String getStore()
public IndexQuery setLimit(int limit)
BaseQuery
public IndexQuery updateLimit(int newLimit)
BackendQuery
updateLimit
in interface BackendQuery<IndexQuery>
Copyright © 2012–2023. All rights reserved.