@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, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
setConf
public void initialize()
MappingStore
initialize
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)
MappingStore
addEntry
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)
MappingStore
getTarget
in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>
vertexId
- vertexIdtarget
- instance to use for storing target informationpublic void postFilling()
MappingStore
postFilling
in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>
public long getStats()
MappingStore
getStats
in interface MappingStore<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.ByteWritable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.