package rewrite
- Alphabetic
- Public
- All
Type Members
- trait GremlinRewriter extends (Seq[GremlinStep]) ⇒ Seq[GremlinStep]
Value Members
-
object
CosmosDbFlavor extends GremlinRewriter
This is a set of rewrites to adapt the translation to Cosmos DB.
-
object
CustomFunctionFallback extends GremlinRewriter
Replaces Custom Functions with "The Best We Could Do" Gremlin native alternatives
-
object
Gremlin33xFlavor extends GremlinRewriter
This is a set of rewrites to adapt the translation to TinkerPop 3.3.x.
-
object
GroupStepFilters extends GremlinRewriter
This rewriter relocates label and property predicates from normalized
WHERE
expressions to the relatedas
step ashas
steps.This rewriter relocates label and property predicates from normalized
WHERE
expressions to the relatedas
step ashas
steps. This should allow Gremlin provider optimization strategies to fold generatedhas
steps into the adjacent vertex step. - object IdentityRewriter extends GremlinRewriter
-
object
InlineFlatMapTraversal extends GremlinRewriter
Generated
flatMap
steps with traversal argument can be replaced with just the traversal for the same effect. -
object
NeptuneFlavor extends GremlinRewriter
This is a set of rewrites to adapt the translation to AWS Neptune.
-
object
RemoveIdentityReselect extends GremlinRewriter
This rule removes
select
steps that immediately follow anas
step with the same label, or are separated from theas
step by one or morehas
steps.This rule removes
select
steps that immediately follow anas
step with the same label, or are separated from theas
step by one or morehas
steps. Since the expected value is already in the traverser, this is a useless operation. This rewrite also enables some cases of RemoveUnusedAliases rewrites. -
object
RemoveIntermediateProjection extends GremlinRewriter
This rule removes intermediate projection in case it does not have any logic, and followed by final projection
-
object
RemoveMultipleAliases extends GremlinRewriter
This rule replaces multiple sequential step aliases with single one, and updates traversal accordingly
-
object
RemoveUnusedAliases extends GremlinRewriter
This rewriter removes many cases of
as
steps that have been generated, but are not actually used in the traversal.This rewriter removes many cases of
as
steps that have been generated, but are not actually used in the traversal. This enables some default Gremlin optimization strategies like org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.IncidentToAdjacentStrategy and allows bulking by keeping traversers compact. -
object
RemoveUselessNullChecks extends GremlinRewriter
This rule finds instances of if-not-null pattern and removes them if there are no prior steps in the traversal that may produce nulls.
-
object
RemoveUselessSteps extends GremlinRewriter
This rewriter removes different sequences of steps that are no-op or otherwise useless.
This rewriter removes different sequences of steps that are no-op or otherwise useless. These sequences can sometimes appear in the generated traversal when results of several walkers are combined together.
-
object
SimplifyDelete extends GremlinRewriter
Removes surplus actions if
delete
ordetach delete
is not used in query -
object
SimplifyEdgeTraversal extends GremlinRewriter
Patterns that only match a directed relation and begin the traversal can be simplified to a single graph step.
-
object
SimplifyPropertySetters extends GremlinRewriter
Property setters where value is a constant can be simplified to avoid empty traversal checks and set or unset the property directly.
-
object
SimplifyRenamedAliases extends GremlinRewriter
Match patterns that start with renaming an existing alias can simply select the existing alias from the traversal.
-
object
SimplifySingleProjections extends GremlinRewriter
This rule removes workarounds from effectively-single projections and lifts projection traversals out of single aggregating projections.