public final class PartitionStrategy extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy> implements TraversalStrategy.DecorationStrategy
PartitionStrategy
partitions the vertices, edges and vertex properties of a graph into String named
partitions (i.e. buckets, subgraphs, etc.). It blinds a Traversal
from "seeing" specified areas of
the graph given the partition names assigned to PartitionStrategy.Builder.addReadPartition(String)
. The traversal will
ignore all graph elements not in those "read" partitions.Modifier and Type | Class and Description |
---|---|
static class |
PartitionStrategy.Builder |
class |
PartitionStrategy.MapPropertiesConverter
|
class |
PartitionStrategy.MapPropertiesFilter
Takes the result of a
Map containing Property lists and if the property is a
VertexProperty it applies a filter based on the current partitioning. |
class |
PartitionStrategy.PartitionKeyHider<A extends Property>
A concrete lambda implementation that filters out the partition key so that it isn't visible when making
calls to
GraphTraversal.valueMap(java.lang.String...) . |
class |
PartitionStrategy.TypeChecker<A>
|
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
Modifier and Type | Field and Description |
---|---|
static String |
INCLUDE_META_PROPERTIES |
static String |
PARTITION_KEY |
static String |
READ_PARTITIONS |
static String |
WRITE_PARTITION |
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
static PartitionStrategy.Builder |
build() |
static PartitionStrategy |
create(Configuration configuration) |
Configuration |
getConfiguration()
Get the configuration representation of this strategy.
|
String |
getPartitionKey() |
Set<String> |
getReadPartitions() |
String |
getWritePartition() |
boolean |
isIncludeMetaProperties() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior
public static final String INCLUDE_META_PROPERTIES
public static final String WRITE_PARTITION
public static final String PARTITION_KEY
public static final String READ_PARTITIONS
public String getWritePartition()
public String getPartitionKey()
public boolean isIncludeMetaProperties()
public static PartitionStrategy.Builder build()
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public Configuration getConfiguration()
TraversalStrategy
getConfiguration
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public static PartitionStrategy create(Configuration configuration)
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.