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() |
MessageCombiner<? super I,M> |
createMessageCombiner(ImmutableClassesGiraphConfiguration<I,? extends org.apache.hadoop.io.Writable,? extends org.apache.hadoop.io.Writable> conf) |
MessageValueFactory<M> |
createMessageValueFactory(ImmutableClassesGiraphConfiguration conf) |
Class<M> |
getMessageClass() |
MessageEncodeAndStoreType |
getMessageEncodeAndStoreType() |
boolean |
ignoreExistingVertices() |
boolean |
useMessageCombiner() |
void |
verifyConsistent(ImmutableClassesGiraphConfiguration conf) |
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()
getMessageClass
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageValueFactory<M> createMessageValueFactory(ImmutableClassesGiraphConfiguration conf)
createMessageValueFactory
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageCombiner<? super I,M> createMessageCombiner(ImmutableClassesGiraphConfiguration<I,? extends org.apache.hadoop.io.Writable,? extends org.apache.hadoop.io.Writable> conf)
createMessageCombiner
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public boolean useMessageCombiner()
useMessageCombiner
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public boolean ignoreExistingVertices()
ignoreExistingVertices
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageEncodeAndStoreType getMessageEncodeAndStoreType()
getMessageEncodeAndStoreType
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public MessageClasses<I,M> createCopyForNewSuperstep()
createCopyForNewSuperstep
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
public void verifyConsistent(ImmutableClassesGiraphConfiguration conf)
verifyConsistent
in interface MessageClasses<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.