public class DefaultEmbeddedLongByteOps extends AbstractLongByteOps
mappingStore
Constructor and Description |
---|
DefaultEmbeddedLongByteOps()
Default constructor (do not use)
|
Modifier and Type | Method and Description |
---|---|
void |
embedTargetInfo(org.apache.hadoop.io.LongWritable id)
Embed target information into vertexId
|
int |
getPartition(org.apache.hadoop.io.LongWritable id,
int partitionCount,
int workerCount)
Get partition id for a vertex id
|
boolean |
hasEmbedding()
True if MappingStoreOps is based on embedding info
|
void |
removeTargetInfo(org.apache.hadoop.io.LongWritable id)
Remove target information from vertexId
|
computePartition, initialize
public DefaultEmbeddedLongByteOps()
public boolean hasEmbedding()
MappingStoreOps
public void embedTargetInfo(org.apache.hadoop.io.LongWritable id)
MappingStoreOps
id
- vertexIdpublic void removeTargetInfo(org.apache.hadoop.io.LongWritable id)
MappingStoreOps
id
- vertexIdpublic int getPartition(org.apache.hadoop.io.LongWritable id, int partitionCount, int workerCount)
MappingStoreOps
id
- vertexIdpartitionCount
- partitionCountworkerCount
- workerCountCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.