public static class Translator.FlavorBuilder<T,P>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected GremlinBindings |
bindings |
| Modifier and Type | Method and Description |
|---|---|
Translator<T,P> |
build()
Builds a
Translator. |
Translator<T,P> |
build(java.lang.String translatorType)
Builds a
Translator from string definition. |
Translator<T,P> |
build(org.opencypher.gremlin.translation.translator.TranslatorFlavor flavor)
Builds a
Translator with the given translator flavor. |
Translator.FlavorBuilder<T,P> |
enable(TranslatorFeature feature)
Enables a feature in the
Translator that's being built. |
Translator.FlavorBuilder<T,P> |
enableCypherExtensions()
Enables Cypher extensions in the
Translator that's being built. |
Translator.FlavorBuilder<T,P> |
enableMultipleLabels()
Enables multiple labels translation in the
Translator that's being built. |
protected Translator.FlavorBuilder<T,P> |
inlineParameters() |
protected GremlinBindings bindings
public Translator.FlavorBuilder<T,P> enable(TranslatorFeature feature)
Translator that's being built.feature - the featurepublic Translator.FlavorBuilder<T,P> enableCypherExtensions()
Translator that's being built.TranslatorFeature.CYPHER_EXTENSIONSpublic Translator.FlavorBuilder<T,P> enableMultipleLabels()
Translator that's being built.TranslatorFeature.CYPHER_EXTENSIONSpublic Translator<T,P> build()
Translator.public Translator<T,P> build(org.opencypher.gremlin.translation.translator.TranslatorFlavor flavor)
Translator with the given translator flavor.flavor - translation flavorpublic Translator<T,P> build(java.lang.String translatorType)
Builds a Translator from string definition. Recommended usage is for parsing user input. Consider
using builder API for all other cases.
Valid parameters are:
cosmosdbcosmosdb+cfog_server_extensionsneptuneneptune+cfog_server_extensionsgremlingremlin+cfog_server_extensionstranslatorType - string definitionprotected Translator.FlavorBuilder<T,P> inlineParameters()