Class TinkerGraphCountStrategy
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy>
- 
- org.apache.tinkerpop.gremlin.tinkergraph.process.traversal.strategy.optimization.TinkerGraphCountStrategy
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Class<? extends TraversalStrategy>>,- TraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy>,- TraversalStrategy.ProviderOptimizationStrategy
 
 public final class TinkerGraphCountStrategy extends AbstractTraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy> implements TraversalStrategy.ProviderOptimizationStrategy This strategy will do a graph size call if the traversal is a count of the vertices and edges of the graph or a one-to-one map chain thereof.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
- Example:
- g.V().count() // is replaced by TinkerCountGlobalStep g.V().map(out()).count() // is replaced by TinkerCountGlobalStep g.E().label().count() // is replaced by TinkerCountGlobalStep 
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategyTraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Traversal.Admin<?,?> traversal)The transformation the strategy applies to the traversal.Set<Class<? extends TraversalStrategy.ProviderOptimizationStrategy>>applyPost()The set of strategies that must be executed after this strategy is executed.static TinkerGraphCountStrategyinstance()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategyequals, hashCode, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategyapplyPrior, getConfiguration
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy.ProviderOptimizationStrategycompareTo, getTraversalCategory
 
- 
 
- 
- 
- 
Method Detail- 
applypublic void apply(Traversal.Admin<?,?> traversal) Description copied from interface:TraversalStrategyThe transformation the strategy applies to the traversal.- Specified by:
- applyin interface- TraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy>
 
 - 
applyPostpublic Set<Class<? extends TraversalStrategy.ProviderOptimizationStrategy>> applyPost() Description copied from interface:TraversalStrategyThe set of strategies that must be executed after this strategy is executed. If there are no ordering requirements, the default implementation returns an empty set.- Specified by:
- applyPostin interface- TraversalStrategy<TraversalStrategy.ProviderOptimizationStrategy>
- Returns:
- the set of strategies that must be executed post this one
 
 - 
instancepublic static TinkerGraphCountStrategy instance() 
 
- 
 
-