public static final class PartitionStrategy.Builder extends Object
Modifier and Type | Method and Description |
---|---|
PartitionStrategy.Builder |
addReadPartition(String readPartition)
Deprecated.
As of release 3.2.3, replaced by
readPartitions(List) . |
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 |
readPartitions(List<String> readPartitions)
Specifies the partition of the graph to read from.
|
PartitionStrategy.Builder |
readPartitions(String... readPartitions)
Specifies the partition of the graph to read from.
|
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 readPartitions(List<String> readPartitions)
public PartitionStrategy.Builder readPartitions(String... readPartitions)
@Deprecated public PartitionStrategy.Builder addReadPartition(String readPartition)
readPartitions(List)
.public PartitionStrategy create()
PartitionStrategy
.Copyright © 2013–2017 Apache Software Foundation. All rights reserved.