Package hydra.tinkerpop.gremlin
Class Query
- java.lang.Object
-
- hydra.tinkerpop.gremlin.Query
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Query>
- Direct Known Subclasses:
Query.Empty,Query.RootTraversal,Query.ToString,Query.TraversalSource
public abstract class Query extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Query>
A Gremlin query- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuery.Emptystatic interfaceQuery.PartialVisitor<R>Partial visitor overQuerywith a defaultQuery.PartialVisitor.otherwise(hydra.tinkerpop.gremlin.Query)branch.static classQuery.RootTraversalstatic classQuery.ToStringstatic classQuery.TraversalSourcestatic interfaceQuery.Visitor<R>Visitor overQuery.
-
Field Summary
Fields Modifier and Type Field Description static NameEMPTYName of thehydra.tinkerpop.gremlin.Query.emptyfield.static NameROOT_TRAVERSALName of thehydra.tinkerpop.gremlin.Query.rootTraversalfield.static NameTO_STRINGName of thehydra.tinkerpop.gremlin.Query.toStringfield.static NameTRAVERSAL_SOURCEName of thehydra.tinkerpop.gremlin.Query.traversalSourcefield.static NameTYPE_Name of thehydra.tinkerpop.gremlin.Querytype.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(Query.Visitor<R> visitor)Dispatch tovisitor.abstract inthydraOrdinal()
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.tinkerpop.gremlin.Querytype.
-
TRAVERSAL_SOURCE
public static final Name TRAVERSAL_SOURCE
Name of thehydra.tinkerpop.gremlin.Query.traversalSourcefield.
-
ROOT_TRAVERSAL
public static final Name ROOT_TRAVERSAL
Name of thehydra.tinkerpop.gremlin.Query.rootTraversalfield.
-
TO_STRING
public static final Name TO_STRING
Name of thehydra.tinkerpop.gremlin.Query.toStringfield.
-
EMPTY
public static final Name EMPTY
Name of thehydra.tinkerpop.gremlin.Query.emptyfield.
-
-
Method Detail
-
accept
public abstract <R> R accept(Query.Visitor<R> visitor)
Dispatch tovisitor.
-
hydraOrdinal
public abstract int hydraOrdinal()
-
-