public class PropertyPlacementStrategy extends SimpleBulkPlacementStrategy
| Modifier and Type | Field and Description |
|---|---|
static ConfigOption<String> |
PARTITION_KEY |
CONCURRENT_PARTITIONS, PARTITION_FINDING_ATTEMPTS| Constructor and Description |
|---|
PropertyPlacementStrategy(Configuration config) |
PropertyPlacementStrategy(String key,
int concurrentPartitions) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPartition(InternalElement element)
Individually assigns an id to the given vertex or relation.
|
void |
getPartitions(Map<InternalVertex,PartitionAssignment> vertices)
Bulk assignment of idAuthorities to vertices.
|
void |
injectIDManager(IDManager idManager)
After construction, the
IDManager used by this graph instance
is injected into this IDPlacementStrategy so that the id pattern of vertices can be inspected. |
void |
setPartitionKey(String key) |
exhaustedPartition, isExhaustedPartition, setLocalPartitionBounds, supportsBulkPlacementpublic static final ConfigOption<String> PARTITION_KEY
public PropertyPlacementStrategy(Configuration config)
public PropertyPlacementStrategy(String key, int concurrentPartitions)
public void setPartitionKey(String key)
public void injectIDManager(IDManager idManager)
IDPlacementStrategyIDManager used by this graph instance
is injected into this IDPlacementStrategy so that the id pattern of vertices can be inspected.
This method is guaranteed to be called before any partition assignments are made.injectIDManager in interface IDPlacementStrategyinjectIDManager in class SimpleBulkPlacementStrategypublic int getPartition(InternalElement element)
IDPlacementStrategygetPartition in interface IDPlacementStrategygetPartition in class SimpleBulkPlacementStrategyelement - Vertex or relation to assign id to.public void getPartitions(Map<InternalVertex,PartitionAssignment> vertices)
IDPlacementStrategyIDPlacementStrategy.supportsBulkPlacement() first.getPartitions in interface IDPlacementStrategygetPartitions in class SimpleBulkPlacementStrategyvertices - Map containing all vertices and their partition placement.Copyright © 2012–2015. All rights reserved.