Class MessageRecvPartition
- java.lang.Object
-
- org.apache.hugegraph.computer.core.receiver.MessageRecvPartition
-
- Direct Known Subclasses:
ComputeMessageRecvPartition,EdgeMessageRecvPartition,VertexMessageRecvPartition
public abstract class MessageRecvPartition extends java.lang.ObjectManage the buffers received for a partition and the files generated by sorting the buffers to file. The type of data may be VERTEX, EDGE, and MESSAGE.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description MessageRecvPartition(org.apache.hugegraph.computer.core.config.Config config, SuperstepFileGenerator fileGenerator, SortManager sortManager, boolean withSubKv)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddBuffer(NetworkBuffer buffer)Only one thread can call this method.java.lang.StringgenOutputPath()PeekableIterator<KvEntry>iterator()MessageStatmessageStat()protected abstract OuterSortFlusherouterSortFlusher()longtotalBytes()protected abstract java.lang.Stringtype()
-
-
-
Constructor Detail
-
MessageRecvPartition
public MessageRecvPartition(org.apache.hugegraph.computer.core.config.Config config, SuperstepFileGenerator fileGenerator, SortManager sortManager, boolean withSubKv)
-
-
Method Detail
-
addBuffer
public void addBuffer(NetworkBuffer buffer)
Only one thread can call this method.
-
iterator
public PeekableIterator<KvEntry> iterator()
-
totalBytes
public long totalBytes()
-
messageStat
public MessageStat messageStat()
-
outerSortFlusher
protected abstract OuterSortFlusher outerSortFlusher()
-
type
protected abstract java.lang.String type()
-
genOutputPath
public java.lang.String genOutputPath()
-
-