I
- Vertex id typeM
- Message typepublic class ObjectMessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable> extends KryoWritable implements MessageClasses<I,M>
Constructor and Description |
---|
ObjectMessageClasses() |
ObjectMessageClasses(Class<M> messageClass,
SupplierFromConf<MessageValueFactory<M>> messageValueFactorySupplier,
SupplierFromConf<? extends MessageCombiner<? super I,M>> messageCombinerSupplier,
MessageEncodeAndStoreType messageEncodeAndStoreType,
boolean ignoreExistingVertices) |
Modifier and Type | Method and Description |
---|---|
MessageClasses<I,M> |
createCopyForNewSuperstep()
Creates a fresh copy of this object,
to be used and changed for new superstep.
|
MessageCombiner<? super I,M> |
createMessageCombiner(ImmutableClassesGiraphConfiguration<I,? extends org.apache.hadoop.io.Writable,? extends org.apache.hadoop.io.Writable> conf)
Create new instance of MessageCombiner
|
MessageValueFactory<M> |
createMessageValueFactory(ImmutableClassesGiraphConfiguration conf)
Create new instance of MessageValueFactory
|
Class<M> |
getMessageClass()
Get message class
|
MessageEncodeAndStoreType |
getMessageEncodeAndStoreType()
Get MessageEncodeAndStoreType
|
boolean |
ignoreExistingVertices()
Whether to completely ignore existing vertices,
and just process messages
|
boolean |
useMessageCombiner()
Has message combiner been specified
|
void |
verifyConsistent(ImmutableClassesGiraphConfiguration conf)
Verify if types are internally consistent
|
readFields, write
public ObjectMessageClasses()
public ObjectMessageClasses(Class<M> messageClass, SupplierFromConf<MessageValueFactory<M>> messageValueFactorySupplier, SupplierFromConf<? extends MessageCombiner<? super I,M>> messageCombinerSupplier, MessageEncodeAndStoreType messageEncodeAndStoreType, boolean ignoreExistingVertices)
public Class<M> getMessageClass()
MessageClasses
getMessageClass
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageValueFactory<M> createMessageValueFactory(ImmutableClassesGiraphConfiguration conf)
MessageClasses
createMessageValueFactory
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
conf
- Configurationpublic MessageCombiner<? super I,M> createMessageCombiner(ImmutableClassesGiraphConfiguration<I,? extends org.apache.hadoop.io.Writable,? extends org.apache.hadoop.io.Writable> conf)
MessageClasses
createMessageCombiner
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
conf
- Configurationpublic boolean useMessageCombiner()
MessageClasses
useMessageCombiner
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public boolean ignoreExistingVertices()
MessageClasses
ignoreExistingVertices
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageEncodeAndStoreType getMessageEncodeAndStoreType()
MessageClasses
getMessageEncodeAndStoreType
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageClasses<I,M> createCopyForNewSuperstep()
MessageClasses
createCopyForNewSuperstep
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public void verifyConsistent(ImmutableClassesGiraphConfiguration conf)
MessageClasses
verifyConsistent
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
conf
- ConfigurationCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.