public final class SubgraphStrategy extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy> implements TraversalStrategy.DecorationStrategy
TraversalStrategy
provides a way to limit the view of a Traversal
. By providing
Traversal
representations that represent a form of filtering criterion for vertices and/or edges,
this strategy will inject that criterion into the appropriate places of a traversal thus restricting what
it traverses and returns.Modifier and Type | Class and Description |
---|---|
static class |
SubgraphStrategy.Builder |
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
Modifier and Type | Field and Description |
---|---|
static String |
CHECK_ADJACENT_VERTICES |
static String |
EDGES |
static String |
VERTEX_PROPERTIES |
static String |
VERTICES |
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
Set<Class<? extends TraversalStrategy.DecorationStrategy>> |
applyPost()
The set of strategies that must be executed after this strategy is executed.
|
static SubgraphStrategy.Builder |
build() |
static SubgraphStrategy |
create(org.apache.commons.configuration2.Configuration configuration) |
org.apache.commons.configuration2.Configuration |
getConfiguration()
Get the configuration representation of this strategy.
|
Traversal<Edge,?> |
getEdgeCriterion() |
Traversal<Vertex,?> |
getVertexCriterion() |
Traversal<VertexProperty,?> |
getVertexPropertyCriterion() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPrior
public static final String VERTICES
public static final String EDGES
public static final String VERTEX_PROPERTIES
public static final String CHECK_ADJACENT_VERTICES
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public org.apache.commons.configuration2.Configuration getConfiguration()
TraversalStrategy
getConfiguration
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public Set<Class<? extends TraversalStrategy.DecorationStrategy>> applyPost()
TraversalStrategy
applyPost
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public Traversal<VertexProperty,?> getVertexPropertyCriterion()
public static SubgraphStrategy create(org.apache.commons.configuration2.Configuration configuration)
public static SubgraphStrategy.Builder build()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.