public final class EdgeLabelVerificationStrategy extends AbstractTraversalStrategy<TraversalStrategy.VerificationStrategy> implements TraversalStrategy.VerificationStrategy
EdgeLabelVerificationStrategy
does not allow edge traversal steps to have no label specified.
Providing one or more labels is considered to be a best practice, however, TinkerPop will not force the specification
of edge labels; instead, providers or users will have to enable this strategy explicitly.
__.outE() // throws an IllegalStateException __.out() // throws an IllegalStateException __.bothE() // throws an IllegalStateException __.to(OUT) // throws an IllegalStateException __.toE(IN) // throws an IllegalStateException
Modifier and Type | Class and Description |
---|---|
static class |
EdgeLabelVerificationStrategy.Builder |
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
static EdgeLabelVerificationStrategy.Builder |
build() |
static EdgeLabelVerificationStrategy |
create(Configuration configuration) |
Configuration |
getConfiguration()
Get the configuration representation of this strategy.
|
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.VerificationStrategy>
public static EdgeLabelVerificationStrategy create(Configuration configuration)
public Configuration getConfiguration()
TraversalStrategy
getConfiguration
in interface TraversalStrategy<TraversalStrategy.VerificationStrategy>
public static EdgeLabelVerificationStrategy.Builder build()
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.