package rewrite

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait GremlinRewriter extends (Seq[GremlinStep]) ⇒ Seq[GremlinStep]

Value Members

  1. object CosmosDbFlavor extends GremlinRewriter

    This is a set of rewrites to adapt the translation to Cosmos DB.

  2. object CustomFunctionFallback extends GremlinRewriter

    Replaces Custom Functions with "The Best We Could Do" Gremlin native alternatives

  3. object Gremlin33xFlavor extends GremlinRewriter

    This is a set of rewrites to adapt the translation to TinkerPop 3.3.x.

  4. object GroupStepFilters extends GremlinRewriter

    This rewriter relocates label and property predicates from normalized WHERE expressions to the related as step as has steps.

    This rewriter relocates label and property predicates from normalized WHERE expressions to the related as step as has steps. This should allow Gremlin provider optimization strategies to fold generated has steps into the adjacent vertex step.

  5. object IdentityRewriter extends GremlinRewriter
  6. object InlineFlatMapTraversal extends GremlinRewriter

    Generated flatMap steps with traversal argument can be replaced with just the traversal for the same effect.

  7. object NeptuneFlavor extends GremlinRewriter

    This is a set of rewrites to adapt the translation to AWS Neptune.

  8. object RemoveIdentityReselect extends GremlinRewriter

    This rule removes select steps that immediately follow an as step with the same label, or are separated from the as step by one or more has steps.

    This rule removes select steps that immediately follow an as step with the same label, or are separated from the as step by one or more has steps. Since the expected value is already in the traverser, this is a useless operation. This rewrite also enables some cases of RemoveUnusedAliases rewrites.

  9. object RemoveIntermediateProjection extends GremlinRewriter

    This rule removes intermediate projection in case it does not have any logic, and followed by final projection

  10. object RemoveMultipleAliases extends GremlinRewriter

    This rule replaces multiple sequential step aliases with single one, and updates traversal accordingly

  11. 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.

  12. 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.

  13. 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.

  14. object SimplifyDelete extends GremlinRewriter

    Removes surplus actions if delete or detach delete is not used in query

  15. object SimplifyEdgeTraversal extends GremlinRewriter

    Patterns that only match a directed relation and begin the traversal can be simplified to a single graph step.

  16. 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.

  17. object SimplifyRenamedAliases extends GremlinRewriter

    Match patterns that start with renaming an existing alias can simply select the existing alias from the traversal.

  18. object SimplifySingleProjections extends GremlinRewriter

    This rule removes workarounds from effectively-single projections and lifts projection traversals out of single aggregating projections.

Ungrouped