Class OrientGraphQuery
java.lang.Object
com.tinkerpop.blueprints.util.DefaultQuery
com.tinkerpop.blueprints.util.DefaultGraphQuery
com.tinkerpop.blueprints.impls.orient.OrientGraphQuery
- All Implemented Interfaces:
com.tinkerpop.blueprints.GraphQuery,com.tinkerpop.blueprints.Query
public class OrientGraphQuery
extends com.tinkerpop.blueprints.util.DefaultGraphQuery
OrientDB implementation for Graph query.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com) (http://orientdb.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassOrientGraphQuery.OrientGraphQueryIterable<T extends com.tinkerpop.blueprints.Element>Nested classes/interfaces inherited from class com.tinkerpop.blueprints.util.DefaultGraphQuery
com.tinkerpop.blueprints.util.DefaultGraphQuery.DefaultGraphQueryIterable<T extends com.tinkerpop.blueprints.Element>Nested classes/interfaces inherited from class com.tinkerpop.blueprints.util.DefaultQuery
com.tinkerpop.blueprints.util.DefaultQuery.HasContainerNested classes/interfaces inherited from interface com.tinkerpop.blueprints.Query
com.tinkerpop.blueprints.Query.Compare -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final charprotected static final charprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final charprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final charprotected static final Stringprotected static final Stringprotected static final charprotected static final charprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final charprotected static final charprotected static final Stringintprotected static final Stringprotected static final charFields inherited from class com.tinkerpop.blueprints.util.DefaultGraphQuery
graphFields inherited from class com.tinkerpop.blueprints.util.DefaultQuery
direction, hasContainers, labels, limit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<com.tinkerpop.blueprints.Edge>edges()Returns the result set of the query as iterable edges.protected voidgenerateFilterValue(StringBuilder text, Object iValue) (Blueprints Extension) Returns the fetch plan used.protected booleancom.tinkerpop.blueprints.Query(Blueprints Extension) Sets the labels to filter.manageFilters(StringBuilder text) protected voidmanageLabels(boolean usedWhere, StringBuilder text) com.tinkerpop.blueprints.Query(Blueprints Extension) Sets the order of results by a field in ascending (asc) order.com.tinkerpop.blueprints.Query(Blueprints Extension) Sets the order of results by a field in ascending (asc) or descending (desc) order based on dir parameter.voidsetFetchPlan(String fetchPlan) (Blueprints Extension) Sets the fetch plan to use on returning result set.com.tinkerpop.blueprints.Queryskip(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.Methods inherited from class com.tinkerpop.blueprints.util.DefaultGraphQuery
has, has, has, has, hasNot, hasNot, interval, limit
-
Field Details
-
SPACE
protected static final char SPACE- See Also:
-
OPERATOR_DIFFERENT
- See Also:
-
OPERATOR_NOT
- See Also:
-
OPERATOR_IS_NOT
- See Also:
-
OPERATOR_LET
- See Also:
-
OPERATOR_LT
protected static final char OPERATOR_LT- See Also:
-
OPERATOR_GTE
- See Also:
-
OPERATOR_GT
protected static final char OPERATOR_GT- See Also:
-
OPERATOR_EQUALS
- See Also:
-
OPERATOR_IS
- See Also:
-
OPERATOR_IN
- See Also:
-
OPERATOR_LIKE
- See Also:
-
QUERY_FILTER_AND
- See Also:
-
QUERY_FILTER_OR
- See Also:
-
QUERY_STRING
protected static final char QUERY_STRING- See Also:
-
QUERY_SEPARATOR
protected static final char QUERY_SEPARATOR- See Also:
-
COLLECTION_BEGIN
protected static final char COLLECTION_BEGIN- See Also:
-
COLLECTION_END
protected static final char COLLECTION_END- See Also:
-
PARENTHESIS_BEGIN
protected static final char PARENTHESIS_BEGIN- See Also:
-
PARENTHESIS_END
protected static final char PARENTHESIS_END- See Also:
-
QUERY_LABEL_BEGIN
- See Also:
-
QUERY_LABEL_END
- See Also:
-
QUERY_WHERE
- See Also:
-
QUERY_SELECT_FROM
- See Also:
-
SKIP
- See Also:
-
LIMIT
- See Also:
-
ORDERBY
- See Also:
-
skip
public int skip -
orderBy
-
orderByDir
-
fetchPlan
-
-
Constructor Details
-
OrientGraphQuery
protected OrientGraphQuery(com.tinkerpop.blueprints.Graph iGraph)
-
-
Method Details
-
labels
(Blueprints Extension) Sets the labels to filter. Labels are bound to Class names by default.- Parameters:
labels- String vararg of labels- Returns:
- Current Query Object to allow calls in chain.
-
skip
public com.tinkerpop.blueprints.Query skip(int iSkip) Skips first iSkip items from the result set.- Parameters:
iSkip- Number of items to skip on result set- Returns:
- Current Query Object to allow calls in chain.
-
order
(Blueprints Extension) Sets the order of results by a field in ascending (asc) order. This is translated on ORDER BY in the underlying SQL query.- Parameters:
props- Field to order by- Returns:
- Current Query Object to allow calls in chain.
-
order
(Blueprints Extension) Sets the order of results by a field in ascending (asc) or descending (desc) order based on dir parameter. This is translated on ORDER BY in the underlying SQL query.- Parameters:
props- Field to order bydir- Direction. Use "asc" for ascending and "desc" for descending- Returns:
- Current Query Object to allow calls in chain.
-
vertices
Returns the result set of the query as iterable vertices.- Specified by:
verticesin interfacecom.tinkerpop.blueprints.Query- Overrides:
verticesin classcom.tinkerpop.blueprints.util.DefaultGraphQuery
-
edges
Returns the result set of the query as iterable edges.- Specified by:
edgesin interfacecom.tinkerpop.blueprints.Query- Overrides:
edgesin classcom.tinkerpop.blueprints.util.DefaultGraphQuery
-
getFetchPlan
(Blueprints Extension) Returns the fetch plan used. -
setFetchPlan
(Blueprints Extension) Sets the fetch plan to use on returning result set. -
manageLabels
-
hasCustomPredicate
protected boolean hasCustomPredicate() -
manageFilters
-
generateFilterValue
-