public class OrientGraphQuery
extends com.tinkerpop.blueprints.util.DefaultGraphQuery
Modifier and Type | Class and Description |
---|---|
class |
OrientGraphQuery.OrientGraphQueryIterable<T extends com.tinkerpop.blueprints.Element> |
com.tinkerpop.blueprints.util.DefaultGraphQuery.DefaultGraphQueryIterable<T extends com.tinkerpop.blueprints.Element>
Modifier and Type | Field and Description |
---|---|
protected static char |
COLLECTION_BEGIN |
protected static char |
COLLECTION_END |
protected String |
fetchPlan |
protected static String |
LIMIT |
protected static String |
OPERATOR_DIFFERENT |
protected static String |
OPERATOR_EQUALS |
protected static char |
OPERATOR_GT |
protected static String |
OPERATOR_GTE |
protected static String |
OPERATOR_IN |
protected static String |
OPERATOR_IS |
protected static String |
OPERATOR_IS_NOT |
protected static String |
OPERATOR_LET |
protected static String |
OPERATOR_LIKE |
protected static char |
OPERATOR_LT |
protected static String |
OPERATOR_NOT |
String |
orderBy |
protected static String |
ORDERBY |
String |
orderByDir |
protected static char |
PARENTHESIS_BEGIN |
protected static char |
PARENTHESIS_END |
protected static String |
QUERY_FILTER_AND |
protected static String |
QUERY_FILTER_OR |
protected static String |
QUERY_LABEL_BEGIN |
protected static String |
QUERY_LABEL_END |
protected static String |
QUERY_SELECT_FROM |
protected static char |
QUERY_SEPARATOR |
protected static char |
QUERY_STRING |
protected static String |
QUERY_WHERE |
int |
skip |
protected static String |
SKIP |
protected static char |
SPACE |
Modifier | Constructor and Description |
---|---|
protected |
OrientGraphQuery(com.tinkerpop.blueprints.Graph iGraph) |
Modifier and Type | Method and Description |
---|---|
Iterable<com.tinkerpop.blueprints.Edge> |
edges()
Returns the result set of the query as iterable edges.
|
protected void |
generateFilterValue(StringBuilder text,
Object iValue) |
String |
getFetchPlan()
(Blueprints Extension) Returns the fetch plan used.
|
protected boolean |
hasCustomPredicate() |
com.tinkerpop.blueprints.Query |
labels(String... labels)
(Blueprints Extension) Sets the labels to filter.
|
protected List<Object> |
manageFilters(StringBuilder text) |
protected void |
manageLabels(boolean usedWhere,
StringBuilder text) |
com.tinkerpop.blueprints.Query |
order(String props)
(Blueprints Extension) Sets the order of results by a field in ascending (asc) order.
|
com.tinkerpop.blueprints.Query |
order(String props,
String dir)
(Blueprints Extension) Sets the order of results by a field in ascending (asc) or descending
(desc) order based on dir parameter.
|
void |
setFetchPlan(String fetchPlan)
(Blueprints Extension) Sets the fetch plan to use on returning result set.
|
com.tinkerpop.blueprints.Query |
skip(int iSkip)
Skips first iSkip items from the result set.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
vertices()
Returns the result set of the query as iterable vertices.
|
protected static final char SPACE
protected static final String OPERATOR_DIFFERENT
protected static final String OPERATOR_NOT
protected static final String OPERATOR_IS_NOT
protected static final String OPERATOR_LET
protected static final char OPERATOR_LT
protected static final String OPERATOR_GTE
protected static final char OPERATOR_GT
protected static final String OPERATOR_EQUALS
protected static final String OPERATOR_IS
protected static final String OPERATOR_IN
protected static final String OPERATOR_LIKE
protected static final String QUERY_FILTER_AND
protected static final String QUERY_FILTER_OR
protected static final char QUERY_STRING
protected static final char QUERY_SEPARATOR
protected static final char COLLECTION_BEGIN
protected static final char COLLECTION_END
protected static final char PARENTHESIS_BEGIN
protected static final char PARENTHESIS_END
protected static final String QUERY_LABEL_BEGIN
protected static final String QUERY_LABEL_END
protected static final String QUERY_WHERE
protected static final String QUERY_SELECT_FROM
protected static final String SKIP
protected static final String LIMIT
protected static final String ORDERBY
public int skip
public String orderBy
public String orderByDir
protected String fetchPlan
protected OrientGraphQuery(com.tinkerpop.blueprints.Graph iGraph)
public com.tinkerpop.blueprints.Query labels(String... labels)
labels
- String vararg of labelspublic com.tinkerpop.blueprints.Query skip(int iSkip)
iSkip
- Number of items to skip on result setpublic com.tinkerpop.blueprints.Query order(String props)
props
- Field to order bypublic com.tinkerpop.blueprints.Query order(String props, String dir)
props
- Field to order bydir
- Direction. Use "asc" for ascending and "desc" for descendingpublic Iterable<com.tinkerpop.blueprints.Vertex> vertices()
vertices
in interface com.tinkerpop.blueprints.Query
vertices
in class com.tinkerpop.blueprints.util.DefaultGraphQuery
public Iterable<com.tinkerpop.blueprints.Edge> edges()
edges
in interface com.tinkerpop.blueprints.Query
edges
in class com.tinkerpop.blueprints.util.DefaultGraphQuery
public String getFetchPlan()
public void setFetchPlan(String fetchPlan)
protected void manageLabels(boolean usedWhere, StringBuilder text)
protected boolean hasCustomPredicate()
protected List<Object> manageFilters(StringBuilder text)
protected void generateFilterValue(StringBuilder text, Object iValue)
Copyright © 2009–2020 OrientDB. All rights reserved.