public final class TinkerGraphCountStrategy extends AbstractTraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy> implements TraversalStrategy.ProviderOptimizationStrategy
TinkerHelper.getVertices(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerVertex, org.apache.tinkerpop.gremlin.structure.Direction, java.lang.String...)
size call if the traversal is a count of the vertices and edges of the graph or a one-to-one map chain thereof.g.V().count() // is replaced by TinkerCountGlobalStep g.V().map(out()).count() // is replaced by TinkerCountGlobalStep g.E().label().count() // is replaced by TinkerCountGlobalStep
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
Set<Class<? extends TraversalStrategy.ProviderOptimizationStrategy>> |
applyPost()
The set of strategies that must be executed after this strategy is executed.
|
static TinkerGraphCountStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPrior, getConfiguration
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy>
public Set<Class<? extends TraversalStrategy.ProviderOptimizationStrategy>> applyPost()
TraversalStrategy
applyPost
in interface TraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy>
public static TinkerGraphCountStrategy instance()
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.