public abstract class AbstractLongByteOps extends Object implements MappingStoreOps<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>
| Modifier and Type | Field and Description |
|---|---|
protected LongByteMappingStore |
mappingStore
Mapping store instance to operate on
|
| Constructor and Description |
|---|
AbstractLongByteOps() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
computePartition(org.apache.hadoop.io.LongWritable id,
int partitionCount,
int workerCount,
byte target)
Compute partition given id, partitionCount, workerCount & target
|
void |
initialize(MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable> mappingStore)
Must be called before anything else can be done
on this instance
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitembedTargetInfo, getPartition, hasEmbedding, removeTargetInfoprotected LongByteMappingStore mappingStore
public void initialize(MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable> mappingStore)
MappingStoreOpsinitialize in interface MappingStoreOps<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>mappingStore - mapping store instance to operate onprotected int computePartition(org.apache.hadoop.io.LongWritable id,
int partitionCount,
int workerCount,
byte target)
id - vertex idpartitionCount - number of partitionsworkerCount - number of workerstarget - target workerCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.