Class VertexStrategy

java.lang.Object
org.umlg.sqlg.strategy.BaseStrategy
org.umlg.sqlg.strategy.VertexStrategy

public class VertexStrategy extends BaseStrategy
Author:
Pieter Martin Date: 2017/03/04
  • Method Details

    • from

      public static VertexStrategy from(org.apache.tinkerpop.gremlin.process.traversal.Traversal.Admin<?,?> traversal)
    • apply

      public void apply()
    • doFirst

      protected boolean doFirst(ListIterator<org.apache.tinkerpop.gremlin.process.traversal.Step<?,?>> stepIterator, org.apache.tinkerpop.gremlin.process.traversal.Step<?,?> step, org.apache.commons.lang3.mutable.MutableInt pathCount)
      EdgeOtherVertexStep can not be optimized as the direction information is lost.
      Specified by:
      doFirst in class BaseStrategy
      Parameters:
      stepIterator - The steps to iterate. Unused for the VertexStrategy
      step - The current step.
      pathCount - The path count.
      Returns:
      true if the optimization can continue else false.
    • constructSqlgStep

      protected SqlgStep constructSqlgStep(org.apache.tinkerpop.gremlin.process.traversal.Step startStep)
      Specified by:
      constructSqlgStep in class BaseStrategy
    • isReplaceableStep

      protected boolean isReplaceableStep(Class<? extends org.apache.tinkerpop.gremlin.process.traversal.Step> stepClass)
      Specified by:
      isReplaceableStep in class BaseStrategy
    • replaceStepInTraversal

      protected void replaceStepInTraversal(org.apache.tinkerpop.gremlin.process.traversal.Step stepToReplace, SqlgStep sqlgStep)
      Specified by:
      replaceStepInTraversal in class BaseStrategy
    • handleAggregateGlobalStep

      protected boolean handleAggregateGlobalStep(ReplacedStep<?,?> replacedStep, org.apache.tinkerpop.gremlin.process.traversal.Step aggregateStep, String aggr)
      Overrides:
      handleAggregateGlobalStep in class BaseStrategy