Class BatchWritableMessageCache<I extends org.apache.hadoop.io.WritableComparable,​M extends org.apache.hadoop.io.Writable,​GS_VID_T>

  • All Implemented Interfaces:
    SendMessageCache<I,​M,​GS_VID_T>

    public class BatchWritableMessageCache<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>
    • Method Detail

      • sendMessage

        public void sendMessage​(int dstFragId,
                                GS_VID_T gid,
                                M message)
        Specified by:
        sendMessage in interface SendMessageCache<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. after flush, clear should be called.
        Specified by:
        flushMessage in interface SendMessageCache<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 interface SendMessageCache<I extends org.apache.hadoop.io.WritableComparable,​M extends org.apache.hadoop.io.Writable,​GS_VID_T>