public final class LazyBarrierStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy
LazyBarrierStrategy is an OLTP-only strategy that automatically inserts a NoOpBarrierStep after every
 FlatMapStep if neither path-tracking nor partial path-tracking is required, and the next step is not the
 traversal's last step or a Barrier. NoOpBarrierSteps allow traversers to be bulked, thus this strategy
 is meant to reduce memory requirements and improve the overall query performance.__.out().bothE().count() // is replaced by __.out().barrier(2500).bothE().count() __.both().both().valueMap() // is replaced by __.both().barrier(2500).both().barrier(2500).valueMap()
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy| Modifier and Type | Field and Description | 
|---|---|
static String | 
BARRIER_COPY_LABELS  | 
static String | 
BARRIER_PLACEHOLDER  | 
protected static int | 
MAX_BARRIER_SIZE  | 
STRATEGY| Modifier and Type | Method and Description | 
|---|---|
void | 
apply(Traversal.Admin<?,?> traversal)  | 
Set<Class<? extends TraversalStrategy.OptimizationStrategy>> | 
applyPrior()
The set of strategies that must be executed before this strategy is executed. 
 | 
static LazyBarrierStrategy | 
instance()  | 
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getTraversalCategoryapplyPost, getConfigurationpublic static final String BARRIER_PLACEHOLDER
public static final String BARRIER_COPY_LABELS
protected static final int MAX_BARRIER_SIZE
public void apply(Traversal.Admin<?,?> traversal)
apply in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>public Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPrior()
TraversalStrategyapplyPrior in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>public static LazyBarrierStrategy instance()
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.