M
- message typeL
- list typepublic abstract class LongAbstractListStore<M extends org.apache.hadoop.io.Writable,L extends List> extends LongAbstractStore<M,L>
config, map, messageValueFactory, partitionInfo
Constructor and Description |
---|
LongAbstractListStore(MessageValueFactory<M> messageValueFactory,
PartitionSplitInfo<org.apache.hadoop.io.LongWritable> partitionInfo,
ImmutableClassesGiraphConfiguration<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> config)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract L |
createList()
Create an instance of L
|
void |
finalizeStore()
Called before start of computation in bspworker
Since it is run from a single thread while the store is not being
accessed by any other thread - this is ensured to be thread-safe
|
protected L |
getList(org.apache.hadoop.io.LongWritable vertexId)
Get list for the current vertexId
|
boolean |
hasMessagesForVertex(org.apache.hadoop.io.LongWritable vertexId)
Check if we have messages for some vertex
|
clearAll, clearPartition, clearVertexMessages, getPartitionDestinationVertices, getPartitionMap, hasMessagesForPartition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMessage, addPartitionMessages, getVertexMessages, isPointerListEncoding, readFieldsForPartition, writePartition
public LongAbstractListStore(MessageValueFactory<M> messageValueFactory, PartitionSplitInfo<org.apache.hadoop.io.LongWritable> partitionInfo, ImmutableClassesGiraphConfiguration<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> config)
messageValueFactory
- Factory for creating message valuespartitionInfo
- Partition split infoconfig
- Hadoop configurationprotected abstract L createList()
protected L getList(org.apache.hadoop.io.LongWritable vertexId)
vertexId
- vertex idpublic void finalizeStore()
MessageStore
public boolean hasMessagesForVertex(org.apache.hadoop.io.LongWritable vertexId)
MessageStore
hasMessagesForVertex
in interface MessageStore<org.apache.hadoop.io.LongWritable,M extends org.apache.hadoop.io.Writable>
hasMessagesForVertex
in class LongAbstractStore<M extends org.apache.hadoop.io.Writable,L extends List>
vertexId
- Id of vertex which we want to checkCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.