public class KeyedDataDeSerializer extends java.lang.Object implements MessageDeSerializer
Constructor and Description |
---|
KeyedDataDeSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
build(java.lang.Object partialObject,
int edge)
Builds the message from the data buffers in the partialObject.
|
MessageHeader |
buildHeader(DataBuffer buffer,
int edge)
Builds the header object from the data in the data buffer
|
java.lang.Object |
getDataBuffers(java.lang.Object partialObject,
int edge)
Returns the data buffers for the given message.
|
void |
init(Config cfg)
Initialize the deserializer
|
public void init(Config cfg)
MessageDeSerializer
init
in interface MessageDeSerializer
cfg
- configurationpublic void build(java.lang.Object partialObject, int edge)
build
in interface MessageDeSerializer
partialObject
- message object that needs to be builtedge
- the edge value associated with this messagepublic java.lang.Object getDataBuffers(java.lang.Object partialObject, int edge)
MessageDeSerializer
getDataBuffers
in interface MessageDeSerializer
partialObject
- object that contains the buffersedge
- id of the edgepublic MessageHeader buildHeader(DataBuffer buffer, int edge)
buildHeader
in interface MessageDeSerializer
buffer
- data buffer that contains the messageedge
- the edge value associated with this message