Class DefaultMessageStoreFactory<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
- java.lang.Object
-
- com.alibaba.graphscope.parallel.message.DefaultMessageStoreFactory<I,M,GS_VID_T>
-
- All Implemented Interfaces:
MessageStoreFactory<I,M,MessageStore<I,M,GS_VID_T>>
public class DefaultMessageStoreFactory<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T> extends Object implements MessageStoreFactory<I,M,MessageStore<I,M,GS_VID_T>>
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(IFragment fragment, ImmutableClassesGiraphConfiguration<I,?,?> conf)
Implementation class should use this method of initialization of any required internal state.MessageStore<I,M,GS_VID_T>
newStore(org.apache.giraph.conf.MessageClasses<I,M> messageClasses)
Creates new message store.
-
-
-
Method Detail
-
newStore
public MessageStore<I,M,GS_VID_T> newStore(org.apache.giraph.conf.MessageClasses<I,M> messageClasses)
Creates new message store.- Specified by:
newStore
in interfaceMessageStoreFactory<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
- Parameters:
messageClasses
- Message classes information to be held in the store- Returns:
- New message store
-
initialize
public void initialize(IFragment fragment, ImmutableClassesGiraphConfiguration<I,?,?> conf)
Implementation class should use this method of initialization of any required internal state.- Specified by:
initialize
in interfaceMessageStoreFactory<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
- Parameters:
fragment
- fragment used for partition queryingconf
- Configuration
-
-