I
- vertex id typeB
- mapping target typepublic interface MappingStoreOps<I extends org.apache.hadoop.io.WritableComparable,B extends org.apache.hadoop.io.Writable>
Modifier and Type | Method and Description |
---|---|
void |
embedTargetInfo(I id)
Embed target information into vertexId
|
int |
getPartition(I id,
int partitionCount,
int workerCount)
Get partition id for a vertex id
|
boolean |
hasEmbedding()
True if MappingStoreOps is based on embedding info
|
void |
initialize(MappingStore<I,B> mappingStore)
Must be called before anything else can be done
on this instance
|
void |
removeTargetInfo(I id)
Remove target information from vertexId
|
void initialize(MappingStore<I,B> mappingStore)
mappingStore
- mapping store instance to operate onboolean hasEmbedding()
void embedTargetInfo(I id)
id
- vertexIdvoid removeTargetInfo(I id)
id
- vertexIdint getPartition(I id, int partitionCount, int workerCount)
id
- vertexIdpartitionCount
- partitionCountworkerCount
- workerCountCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.