public static final class PartitionStrategy.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
PartitionStrategy.Builder |
addReadPartition(String readPartition)
Specifies the partition of the graph to read from.
|
PartitionStrategy |
create()
Creates the
PartitionStrategy. |
PartitionStrategy.Builder |
includeMetaProperties(boolean includeMetaProperties)
Set to
true if the VertexProperty instances should get assigned to partitions. |
PartitionStrategy.Builder |
partitionKey(String partitionKey)
Specifies the partition key name.
|
PartitionStrategy.Builder |
writePartition(String writePartition)
Specifies the name of the partition to write when adding vertices, edges and vertex properties.
|
public PartitionStrategy.Builder includeMetaProperties(boolean includeMetaProperties)
true if the VertexProperty instances should get assigned to partitions. This
has the effect of hiding properties within a particular partition so that in order for the
VertexProperty to be seen both the parent Vertex and the VertexProperty must have
readable partitions defined in the strategy.
When setting this to true (it is false by default) it is important that the Graph
support the meta-properties feature. If it does not errors will ensue.public PartitionStrategy.Builder writePartition(String writePartition)
public PartitionStrategy.Builder partitionKey(String partitionKey)
PartitionStrategy to be constructed properly.public PartitionStrategy.Builder addReadPartition(String readPartition)
public PartitionStrategy create()
PartitionStrategy.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.