Interface MessageStore<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,GS_VID_T>
-
- Type Parameters:
I
- Vertex idM
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addGidMessage(GS_VID_T gid, M writable)
For messages bound with gid, first get lid.void
addGidMessages(Iterator<GS_VID_T> gids, Iterator<M> writables)
void
addLidMessage(GS_VID_T lid, M writable)
boolean
anyMessageReceived()
Check whether any messages received.void
clearAll()
void
digest(FFIByteVector vector)
For a bytestream provided by FFIByteVector, read from it and digest its content.void
digestByteBuffer(io.netty.buffer.ByteBuf buf, boolean fromSelf)
Iterable<M>
getMessages(GS_VID_T lid)
Iterable<M>
getMessages(Long lid)
boolean
messageAvailable(GS_VID_T lid)
Check for lid, any messages available.boolean
messageAvailable(Long lid)
void
swap(MessageStore<I,M,GS_VID_T> other)
-
-
-
Method Detail
-
addGidMessage
void addGidMessage(GS_VID_T gid, M writable)
For messages bound with gid, first get lid.- Parameters:
gid
- global idwritable
- msg
-
swap
void swap(MessageStore<I,M,GS_VID_T> other)
-
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)
-
-