@ThreadSafe public class LongByteMappingStore extends DefaultImmutableClassesGiraphConfigurable<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> implements MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>
| Constructor and Description | 
|---|
| LongByteMappingStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addEntry(org.apache.hadoop.io.LongWritable vertexId,
        org.apache.hadoop.io.ByteWritable target)Add an entry to the mapping store | 
| byte | getByteTarget(org.apache.hadoop.io.LongWritable vertexId)Auxiliary method to be used by getTarget | 
| long | getStats()Get stats about the MappingStore | 
| org.apache.hadoop.io.ByteWritable | getTarget(org.apache.hadoop.io.LongWritable vertexId,
         org.apache.hadoop.io.ByteWritable target)Get target for given vertexId | 
| void | initialize()Must be called before anything else can be done
 on this instance | 
| void | postFilling()Operations to perform after adding entries
 to the mapping store | 
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfsetConfpublic void initialize()
MappingStoreinitialize in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>public byte getByteTarget(org.apache.hadoop.io.LongWritable vertexId)
vertexId - vertexIdpublic void addEntry(org.apache.hadoop.io.LongWritable vertexId,
                     org.apache.hadoop.io.ByteWritable target)
MappingStoreaddEntry in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>vertexId - vertexIdtarget - targetpublic org.apache.hadoop.io.ByteWritable getTarget(org.apache.hadoop.io.LongWritable vertexId,
                                                   org.apache.hadoop.io.ByteWritable target)
MappingStoregetTarget in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>vertexId - vertexIdtarget - instance to use for storing target informationpublic void postFilling()
MappingStorepostFilling in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>public long getStats()
MappingStoregetStats in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.