public interface IDPlacementStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
exhaustedPartition(int partitionID)
Called when there are no more idAuthorities left in the given partition.
|
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 |
setLocalPartitionBounds(List<PartitionIDRange> localPartitionIdRanges)
If Titan is embedded, this method is used to indicate to the placement strategy which
part of the partition id space is hosted locally so that vertex and edge placements can be made accordingly
(i.e.
|
boolean |
supportsBulkPlacement()
Whether this placement strategy supports bulk placement.
|
int getPartition(InternalElement element)
element - Vertex or relation to assign id to.void getPartitions(Map<InternalVertex,PartitionAssignment> vertices)
supportsBulkPlacement() first.vertices - Map containing all vertices and their partition placement.boolean supportsBulkPlacement()
getPartitions(java.util.Map) will throw UnsupportedOperationExceptionvoid setLocalPartitionBounds(List<PartitionIDRange> localPartitionIdRanges)
localPartitionIdRanges - List of PartitionIDRanges correspondinging to the locally hosted partitionsvoid exhaustedPartition(int partitionID)
partitionID - Id of the partition that has been exhausted.Copyright © 2012–2014. All rights reserved.