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, hasMessagesForPartitionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMessage, addPartitionMessages, getVertexMessages, isPointerListEncoding, readFieldsForPartition, writePartitionpublic 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()
MessageStorepublic boolean hasMessagesForVertex(org.apache.hadoop.io.LongWritable vertexId)
MessageStorehasMessagesForVertex 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.