Package org.umlg.sqlg.strategy
Class VertexStrategy
java.lang.Object
org.umlg.sqlg.strategy.BaseStrategy
org.umlg.sqlg.strategy.VertexStrategy
- Author:
 - Pieter Martin Date: 2017/03/04
 
- 
Field Summary
Fields inherited from class org.umlg.sqlg.strategy.BaseStrategy
EMIT_LABEL_SUFFIX, PATH_LABEL_SUFFIX, SQLG_PATH_FAKE_LABEL, SQLG_PATH_ORDER_RANGE_LABEL, SQLG_PATH_TEMP_FAKE_LABEL, SUPPORTED_ID_BI_PREDICATE, SUPPORTED_LABEL_BI_PREDICATE - 
Method Summary
Modifier and TypeMethodDescriptionvoidapply()protected SqlgStepconstructSqlgStep(org.apache.tinkerpop.gremlin.process.traversal.Step startStep) protected booleandoFirst(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.static VertexStrategyfrom(org.apache.tinkerpop.gremlin.process.traversal.Traversal.Admin<?, ?> traversal) protected booleanhandleAggregateGlobalStep(ReplacedStep<?, ?> replacedStep, org.apache.tinkerpop.gremlin.process.traversal.Step aggregateStep, String aggr) protected booleanisReplaceableStep(Class<? extends org.apache.tinkerpop.gremlin.process.traversal.Step> stepClass) protected voidreplaceStepInTraversal(org.apache.tinkerpop.gremlin.process.traversal.Step stepToReplace, SqlgStep sqlgStep)  
- 
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:
 doFirstin classBaseStrategy- Parameters:
 stepIterator- The steps to iterate. Unused for the VertexStrategystep- The current step.pathCount- The path count.- Returns:
 - true if the optimization can continue else false.
 
 - 
constructSqlgStep
- Specified by:
 constructSqlgStepin classBaseStrategy
 - 
isReplaceableStep
protected boolean isReplaceableStep(Class<? extends org.apache.tinkerpop.gremlin.process.traversal.Step> stepClass) - Specified by:
 isReplaceableStepin classBaseStrategy
 - 
replaceStepInTraversal
protected void replaceStepInTraversal(org.apache.tinkerpop.gremlin.process.traversal.Step stepToReplace, SqlgStep sqlgStep) - Specified by:
 replaceStepInTraversalin classBaseStrategy
 - 
handleAggregateGlobalStep
protected boolean handleAggregateGlobalStep(ReplacedStep<?, ?> replacedStep, org.apache.tinkerpop.gremlin.process.traversal.Step aggregateStep, String aggr) - Overrides:
 handleAggregateGlobalStepin classBaseStrategy
 
 -