public final class RepeatUnrollStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy
RepeatUnrollStrategy
is an OLTP-only strategy that unrolls any RepeatStep
if it uses a constant
number of loops (times(x)
) and doesn't emit intermittent elements. If any of the following 3 steps appears
within the repeat-traversal, the strategy will not be applied:
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_BARRIER_SIZE |
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
static RepeatUnrollStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior, getConfiguration
protected static final int MAX_BARRIER_SIZE
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public static RepeatUnrollStrategy instance()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.