Class MessageRecvPartitions<P extends MessageRecvPartition>
- java.lang.Object
-
- org.apache.hugegraph.computer.core.receiver.MessageRecvPartitions<P>
-
- Direct Known Subclasses:
ComputeMessageRecvPartitions,EdgeMessageRecvPartitions,VertexMessageRecvPartitions
public abstract class MessageRecvPartitions<P extends MessageRecvPartition> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.hugegraph.computer.core.config.Configconfigprotected org.apache.hugegraph.computer.core.common.ComputerContextcontextprotected SuperstepFileGeneratorfileGeneratorprotected SortManagersortManager
-
Constructor Summary
Constructors Constructor Description MessageRecvPartitions(org.apache.hugegraph.computer.core.common.ComputerContext context, SuperstepFileGenerator fileGenerator, SortManager sortManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddBuffer(int partitionId, NetworkBuffer buffer)voidclearOldFiles(int superstep)protected abstract PcreatePartition()java.lang.StringgenOutputPath(int partitionId)java.util.Map<java.lang.Integer,PeekableIterator<KvEntry>>iterators()java.util.Map<java.lang.Integer,MessageStat>messageStats()
-
-
-
Field Detail
-
context
protected final org.apache.hugegraph.computer.core.common.ComputerContext context
-
config
protected final org.apache.hugegraph.computer.core.config.Config config
-
fileGenerator
protected final SuperstepFileGenerator fileGenerator
-
sortManager
protected final SortManager sortManager
-
-
Constructor Detail
-
MessageRecvPartitions
public MessageRecvPartitions(org.apache.hugegraph.computer.core.common.ComputerContext context, SuperstepFileGenerator fileGenerator, SortManager sortManager)
-
-
Method Detail
-
createPartition
protected abstract P createPartition()
-
addBuffer
public void addBuffer(int partitionId, NetworkBuffer buffer)
-
genOutputPath
public java.lang.String genOutputPath(int partitionId)
-
iterators
public java.util.Map<java.lang.Integer,PeekableIterator<KvEntry>> iterators()
-
messageStats
public java.util.Map<java.lang.Integer,MessageStat> messageStats()
-
clearOldFiles
public void clearOldFiles(int superstep)
-
-