public final class Translator<T,P> extends Object
Translator instances are not reusable.
Modifier and Type | Class and Description |
---|---|
static class |
Translator.Builder |
static class |
Translator.FlavorBuilder<T,P> |
static class |
Translator.ParametrizedFlavorBuilder<T,P> |
Modifier and Type | Method and Description |
---|---|
GremlinBindings |
bindings()
Returns a strategy for working with query bindings.
|
static Translator.Builder |
builder()
Starts to build a translator.
|
Set<TranslatorFeature> |
features()
Returns set of translator features
|
org.opencypher.gremlin.translation.translator.TranslatorFlavor |
flavor()
Returns the flavor of this translation.
|
boolean |
isEnabled(TranslatorFeature feature)
Returns true if a given feature is enabled in this translator.
|
GremlinPredicates<P> |
predicates()
Returns a factory for traversal predicates for use with the traversal DSL.
|
GremlinSteps<T,P> |
steps()
Provides access to the traversal DSL.
|
T |
translate()
Creates a translation for the configured target.
|
public GremlinSteps<T,P> steps()
predicates()
,
bindings()
public GremlinPredicates<P> predicates()
steps()
,
bindings()
public GremlinBindings bindings()
steps()
,
predicates()
public boolean isEnabled(TranslatorFeature feature)
feature
- the featurepublic Set<TranslatorFeature> features()
TranslatorFeature
public org.opencypher.gremlin.translation.translator.TranslatorFlavor flavor()
public T translate()
public static Translator.Builder builder()