public final class PartitionStrategy extends java.lang.Object implements GraphStrategy
GraphStrategy which enables support for logical graph partitioning where the Graph can be blinded to
different parts of the total Graph. Note that the partitionKey
is hidden by this strategy. Use the base Graph to access that.| Modifier and Type | Class and Description |
|---|---|
static class |
PartitionStrategy.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addReadPartition(java.lang.String readPartition) |
static PartitionStrategy.Builder |
build() |
void |
clearReadPartitions() |
java.util.function.UnaryOperator<TriFunction<java.lang.String,Vertex,java.lang.Object[],Edge>> |
getAddEdgeStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
TriFunction that enhances the features of
Vertex.addEdge(String, com.tinkerpop.gremlin.structure.Vertex, Object...). |
java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],Vertex>> |
getAddVertexStrategy(StrategyContext<StrategyGraph> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Graph.addVertex(Object...). |
<V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String,Property<V>>> |
getEdgeGetPropertyStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Element.property(String). |
<V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<Property<V>>>> |
getEdgeIteratorsPropertyIteratorStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Edge.Iterators.propertyIterator(java.lang.String...). |
<V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<V>>> |
getEdgeIteratorsValueIteratorStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Element.Iterators.valueIterator(java.lang.String...). |
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.Supplier<java.util.Set<java.lang.String>>> |
getEdgeKeysStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Element.keys(). |
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.lang.String |
getPartitionKey() |
java.util.Set<java.lang.String> |
getReadPartitions() |
<V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String,VertexProperty<V>>> |
getVertexGetPropertyStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Vertex.property(String). |
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...). |
<V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<VertexProperty<V>>>> |
getVertexIteratorsPropertyIteratorStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Element.Iterators.propertyIterator(java.lang.String...). |
<V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<V>>> |
getVertexIteratorsValueIteratorStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Element.Iterators.valueIterator(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.util.function.UnaryOperator<java.util.function.Supplier<java.util.Set<java.lang.String>>> |
getVertexKeysStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Element.keys(). |
java.lang.String |
getWritePartition() |
void |
removeReadPartition(java.lang.String readPartition) |
void |
setWritePartition(java.lang.String writePartition) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEdgeGraphStrategy, getEdgeIdStrategy, getEdgeLabelStrategy, getEdgePropertyStrategy, getEdgeValueStrategy, getGraphCloseStrategy, getGraphIteratorsEdgeIteratorStrategy, getGraphIteratorsVertexIteratorStrategy, getPropertyKeyStrategy, getPropertyValueStrategy, getRemoveEdgeStrategy, getRemovePropertyStrategy, getRemoveVertexPropertyStrategy, getRemoveVertexStrategy, getVariableAsMapStrategy, getVariableGetStrategy, getVariableKeysStrategy, getVariableRemoveStrategy, getVariableSetStrategy, getVertexGraphStrategy, getVertexIdStrategy, getVertexLabelStrategy, getVertexPropertyGetElementStrategy, getVertexPropertyGraphStrategy, getVertexPropertyIdStrategy, getVertexPropertyIteratorsPropertyIteratorStrategy, getVertexPropertyIteratorsValueIteratorStrategy, getVertexPropertyKeysStrategy, getVertexPropertyKeyStrategy, getVertexPropertyLabelStrategy, getVertexPropertyPropertyStrategy, getVertexPropertyStrategy, getVertexPropertyValueStrategy, getVertexValueStrategypublic java.lang.String getWritePartition()
public void setWritePartition(java.lang.String writePartition)
public java.lang.String getPartitionKey()
public java.util.Set<java.lang.String> getReadPartitions()
public void removeReadPartition(java.lang.String readPartition)
public void addReadPartition(java.lang.String readPartition)
public void clearReadPartitions()
public 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 <V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<VertexProperty<V>>>> getVertexIteratorsPropertyIteratorStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Element.Iterators.propertyIterator(java.lang.String...).getVertexIteratorsPropertyIteratorStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Element.Iterators.propertyIterator(java.lang.String...) signature
and returns an enhanced strategy Supplier with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<V>>> getVertexIteratorsValueIteratorStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Element.Iterators.valueIterator(java.lang.String...).getVertexIteratorsValueIteratorStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Element.Iterators.valueIterator(java.lang.String...) signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Supplier<java.util.Set<java.lang.String>>> getVertexKeysStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Element.keys().getVertexKeysStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Element.keys() signature
and returns an enhanced strategy Supplier with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String,VertexProperty<V>>> getVertexGetPropertyStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Vertex.property(String).getVertexGetPropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Vertex.property(String) signature
and returns an enhanced strategy Function with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String,Property<V>>> getEdgeGetPropertyStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Element.property(String).getEdgeGetPropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Element.property(String) signature
and returns an enhanced strategy Function with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<Property<V>>>> getEdgeIteratorsPropertyIteratorStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Edge.Iterators.propertyIterator(java.lang.String...).getEdgeIteratorsPropertyIteratorStrategy 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.propertyIterator(java.lang.String...) signature
and returns an enhanced strategy Supplier with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Function<java.lang.String[],java.util.Iterator<V>>> getEdgeIteratorsValueIteratorStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Element.Iterators.valueIterator(java.lang.String...).getEdgeIteratorsValueIteratorStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with
Element.Iterators.valueIterator(java.lang.String...) signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Supplier<java.util.Set<java.lang.String>>> getEdgeKeysStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Element.keys().getEdgeKeysStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Element.keys() signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],Vertex>> getAddVertexStrategy(StrategyContext<StrategyGraph> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Graph.addVertex(Object...).getAddVertexStrategy 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.addVertex(Object...) signature
and returns an enhanced strategy Function with the same signaturepublic java.util.function.UnaryOperator<TriFunction<java.lang.String,Vertex,java.lang.Object[],Edge>> getAddEdgeStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyTriFunction that enhances the features of
Vertex.addEdge(String, com.tinkerpop.gremlin.structure.Vertex, Object...).getAddEdgeStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a TriFunction with
Vertex.addEdge(String, com.tinkerpop.gremlin.structure.Vertex, Object...) signature
and returns an enhanced strategy Function with the same signaturepublic java.lang.String toString()
toString in class java.lang.Objectpublic static PartitionStrategy.Builder build()
Copyright © 2013-2015 TinkerPop. All Rights Reserved.