Interface MessageStore<I extends org.apache.hadoop.io.WritableComparable,​M extends org.apache.hadoop.io.Writable,​GS_VID_T>

  • Type Parameters:
    I - Vertex id
    M - Message data
    All Known Implementing Classes:
    DefaultMessageStore

    public interface MessageStore<I extends org.apache.hadoop.io.WritableComparable,​M extends org.apache.hadoop.io.Writable,​GS_VID_T>
    Message store
    • Method Detail

      • addLidMessage

        void addLidMessage​(GS_VID_T lid,
                           M writable)
      • addGidMessage

        void addGidMessage​(GS_VID_T gid,
                           M writable)
        For messages bound with gid, first get lid.
        Parameters:
        gid - global id
        writable - msg
      • clearAll

        void clearAll()
      • anyMessageReceived

        boolean anyMessageReceived()
        Check whether any messages received.
      • messageAvailable

        boolean messageAvailable​(GS_VID_T lid)
        Check for lid, any messages available.
        Parameters:
        lid - lid.
        Returns:
        true if has message
      • messageAvailable

        boolean messageAvailable​(Long lid)
      • digest

        void digest​(FFIByteVector vector)
        For a bytestream provided by FFIByteVector, read from it and digest its content.
        Parameters:
        vector -
      • digestByteBuffer

        void digestByteBuffer​(io.netty.buffer.ByteBuf buf,
                              boolean fromSelf)