public static final class Translator.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Translator.ParametrizedFlavorBuilder<Bytecode,P> |
bytecode()
Builds a
Translator that translates Cypher queries
to Gremlin bytecode. |
<T,P> Translator.FlavorBuilder<T,P> |
custom(GremlinSteps<T,P> steps,
GremlinPredicates<P> predicates,
GremlinBindings parameters)
Builds a
Translator that translates Cypher queries
to custom format via the provided steps and predicates implementation. |
Translator.ParametrizedFlavorBuilder<String,GroovyPredicate> |
gremlinGroovy()
Builds a
Translator that translates Cypher queries
to strings of Gremlin-Groovy. |
Translator.FlavorBuilder<GraphTraversal,P> |
traversal()
Builds a
Translator that translates Cypher queries
to Gremlin anonymous GraphTraversal . |
Translator.FlavorBuilder<GraphTraversal,P> |
traversal(GraphTraversal g)
Builds a
Translator that translates Cypher queries
to Gremlin GraphTraversal that can be iterated to yield results
for its source. |
public Translator.ParametrizedFlavorBuilder<String,GroovyPredicate> gremlinGroovy()
Translator
that translates Cypher queries
to strings of Gremlin-Groovy.public Translator.ParametrizedFlavorBuilder<Bytecode,P> bytecode()
Translator
that translates Cypher queries
to Gremlin bytecode.public Translator.FlavorBuilder<GraphTraversal,P> traversal()
Translator
that translates Cypher queries
to Gremlin anonymous GraphTraversal
.
See: https://tinkerpop.apache.org/docs/current/reference/#traversal
public Translator.FlavorBuilder<GraphTraversal,P> traversal(GraphTraversal g)
Translator
that translates Cypher queries
to Gremlin GraphTraversal
that can be iterated to yield results
for its source.
See: https://tinkerpop.apache.org/docs/current/reference/#traversal
g
- traversal to modify with translated stepspublic <T,P> Translator.FlavorBuilder<T,P> custom(GremlinSteps<T,P> steps, GremlinPredicates<P> predicates, GremlinBindings parameters)
Translator
that translates Cypher queries
to custom format via the provided steps and predicates implementation.T
- translation target typeP
- predicate target typesteps
- Gremlin steps implementationpredicates
- Gremlin predicates implementationparameters
- Parameters strategy implementation