public final class SubgraphStrategy extends java.lang.Object implements GraphStrategy
GraphStrategy which creates a logical subgraph to selectively include vertices and edges of a
Graph according to provided criteria. A vertex is in the subgraph if
it meets the specified vertexPredicate. An edge is in the subgraph if it meets the specified
edgePredicate and its associated vertices meet the specified vertexPredicate.| Modifier and Type | Class and Description |
|---|---|
static class |
SubgraphStrategy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SubgraphStrategy.Builder |
build() |
java.util.function.UnaryOperator<java.util.function.Function<Direction,java.util.Iterator<Vertex>>> |
getEdgeIteratorsVertexIteratorStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Edge.Iterators.vertexIterator(com.tinkerpop.gremlin.structure.Direction). |
java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],GraphTraversal<Edge,Edge>>> |
getGraphEStrategy(StrategyContext<StrategyGraph> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Graph.E(java.lang.Object...). |
java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],GraphTraversal<Vertex,Vertex>>> |
getGraphVStrategy(StrategyContext<StrategyGraph> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Graph.V(java.lang.Object...). |
java.util.function.UnaryOperator<java.util.function.BiFunction<Direction,java.lang.String[],java.util.Iterator<Edge>>> |
getVertexIteratorsEdgeIteratorStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
TriFunction that enhances the features of Vertex.Iterators.edgeIterator(com.tinkerpop.gremlin.structure.Direction, java.lang.String...). |
java.util.function.UnaryOperator<java.util.function.BiFunction<Direction,java.lang.String[],java.util.Iterator<Vertex>>> |
getVertexIteratorsVertexIteratorStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
TriFunction that enhances the features of Vertex.Iterators.vertexIterator(com.tinkerpop.gremlin.structure.Direction, java.lang.String...). |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAddEdgeStrategy, getAddVertexStrategy, getEdgeGetPropertyStrategy, getEdgeGraphStrategy, getEdgeIdStrategy, getEdgeIteratorsPropertyIteratorStrategy, getEdgeIteratorsValueIteratorStrategy, getEdgeKeysStrategy, getEdgeLabelStrategy, getEdgePropertyStrategy, getEdgeValueStrategy, getGraphCloseStrategy, getGraphIteratorsEdgeIteratorStrategy, getGraphIteratorsVertexIteratorStrategy, getPropertyKeyStrategy, getPropertyValueStrategy, getRemoveEdgeStrategy, getRemovePropertyStrategy, getRemoveVertexPropertyStrategy, getRemoveVertexStrategy, getVariableAsMapStrategy, getVariableGetStrategy, getVariableKeysStrategy, getVariableRemoveStrategy, getVariableSetStrategy, getVertexGetPropertyStrategy, getVertexGraphStrategy, getVertexIdStrategy, getVertexIteratorsPropertyIteratorStrategy, getVertexIteratorsValueIteratorStrategy, getVertexKeysStrategy, getVertexLabelStrategy, getVertexPropertyGetElementStrategy, getVertexPropertyGraphStrategy, getVertexPropertyIdStrategy, getVertexPropertyIteratorsPropertyIteratorStrategy, getVertexPropertyIteratorsValueIteratorStrategy, getVertexPropertyKeysStrategy, getVertexPropertyKeyStrategy, getVertexPropertyLabelStrategy, getVertexPropertyPropertyStrategy, getVertexPropertyStrategy, getVertexPropertyValueStrategy, getVertexValueStrategypublic java.util.function.UnaryOperator<java.util.function.BiFunction<Direction,java.lang.String[],java.util.Iterator<Vertex>>> getVertexIteratorsVertexIteratorStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyTriFunction that enhances the features of Vertex.Iterators.vertexIterator(com.tinkerpop.gremlin.structure.Direction, java.lang.String...).getVertexIteratorsVertexIteratorStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a BiFunction with
Vertex.Iterators.vertexIterator(com.tinkerpop.gremlin.structure.Direction, java.lang.String...) signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.BiFunction<Direction,java.lang.String[],java.util.Iterator<Edge>>> getVertexIteratorsEdgeIteratorStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyTriFunction that enhances the features of Vertex.Iterators.edgeIterator(com.tinkerpop.gremlin.structure.Direction, java.lang.String...).getVertexIteratorsEdgeIteratorStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a BiFunction with
Vertex.Iterators.edgeIterator(com.tinkerpop.gremlin.structure.Direction, java.lang.String...) signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Function<Direction,java.util.Iterator<Vertex>>> getEdgeIteratorsVertexIteratorStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Edge.Iterators.vertexIterator(com.tinkerpop.gremlin.structure.Direction).getEdgeIteratorsVertexIteratorStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Edge.Iterators.vertexIterator(com.tinkerpop.gremlin.structure.Direction) signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],GraphTraversal<Vertex,Vertex>>> getGraphVStrategy(StrategyContext<StrategyGraph> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Graph.V(java.lang.Object...).getGraphVStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Graph.V(java.lang.Object...) signature
and returns an enhanced strategy Function with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],GraphTraversal<Edge,Edge>>> getGraphEStrategy(StrategyContext<StrategyGraph> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Graph.E(java.lang.Object...).getGraphEStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Graph.E(java.lang.Object...) signature
and returns an enhanced strategy Function with the same signaturepublic java.lang.String toString()
toString in class java.lang.Objectpublic static SubgraphStrategy.Builder build()
Copyright © 2013-2015 TinkerPop. All Rights Reserved.