Class ByteBufMessageCache<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
- java.lang.Object
-
- com.alibaba.graphscope.parallel.cache.impl.ByteBufMessageCache<I,M,GS_VID_T>
-
- Type Parameters:
I
- vertex id typeM
- message typeGS_VID_T
- gs vid
- All Implemented Interfaces:
SendMessageCache<I,M,GS_VID_T>
public class ByteBufMessageCache<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T> extends Object implements SendMessageCache<I,M,GS_VID_T>
Use a byteBuf as underlying cache storage.
-
-
Constructor Summary
Constructors Constructor Description ByteBufMessageCache(int fragNum, int fragId, NettyClient client, ImmutableClassesGiraphConfiguration<I,?,?> conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
flushMessage()
FLush all cached messages out.void
removeMessageToSelf(MessageStore<I,M,GS_VID_T> nextIncomingMessages)
void
sendMessage(int dstFragId, GS_VID_T gid, M message)
-
-
-
Constructor Detail
-
ByteBufMessageCache
public ByteBufMessageCache(int fragNum, int fragId, NettyClient client, ImmutableClassesGiraphConfiguration<I,?,?> conf)
-
-
Method Detail
-
sendMessage
public void sendMessage(int dstFragId, GS_VID_T gid, M message)
- Specified by:
sendMessage
in interfaceSendMessageCache<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
-
removeMessageToSelf
public void removeMessageToSelf(MessageStore<I,M,GS_VID_T> nextIncomingMessages)
- Specified by:
removeMessageToSelf
in interfaceSendMessageCache<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
-
flushMessage
public void flushMessage()
FLush all cached messages out.- Specified by:
flushMessage
in interfaceSendMessageCache<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
-
clear
public void clear()
- Specified by:
clear
in interfaceSendMessageCache<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
-
-