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 TypeMethodDescriptionvoid
apply()
protected SqlgStep
constructSqlgStep
(org.apache.tinkerpop.gremlin.process.traversal.Step startStep) 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.static VertexStrategy
from
(org.apache.tinkerpop.gremlin.process.traversal.Traversal.Admin<?, ?> traversal) protected boolean
handleAggregateGlobalStep
(ReplacedStep<?, ?> replacedStep, org.apache.tinkerpop.gremlin.process.traversal.Step aggregateStep, String aggr) protected boolean
isReplaceableStep
(Class<? extends org.apache.tinkerpop.gremlin.process.traversal.Step> stepClass) protected void
replaceStepInTraversal
(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:
doFirst
in 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:
constructSqlgStep
in classBaseStrategy
-
isReplaceableStep
protected boolean isReplaceableStep(Class<? extends org.apache.tinkerpop.gremlin.process.traversal.Step> stepClass) - Specified by:
isReplaceableStep
in classBaseStrategy
-
replaceStepInTraversal
protected void replaceStepInTraversal(org.apache.tinkerpop.gremlin.process.traversal.Step stepToReplace, SqlgStep sqlgStep) - Specified by:
replaceStepInTraversal
in classBaseStrategy
-
handleAggregateGlobalStep
protected boolean handleAggregateGlobalStep(ReplacedStep<?, ?> replacedStep, org.apache.tinkerpop.gremlin.process.traversal.Step aggregateStep, String aggr) - Overrides:
handleAggregateGlobalStep
in classBaseStrategy
-