Class ByteArrayMessage
- java.lang.Object
-
- com.alibaba.graphscope.graph.comm.requests.ByteArrayMessage
-
- All Implemented Interfaces:
NettyMessage
,org.apache.hadoop.io.Writable
- Direct Known Subclasses:
AggregatorMessage
public class ByteArrayMessage extends Object implements NettyMessage
-
-
Constructor Summary
Constructors Constructor Description ByteArrayMessage()
ByteArrayMessage(byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
DataInput
getDataInput()
Get request data in the form ofDataInput
NettyMessageType
getMessageType()
int
getSerializedSize()
void
readFields(DataInput input)
void
setData(byte[] data)
void
write(DataOutput output)
-
-
-
Method Detail
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data)
-
getDataInput
public DataInput getDataInput()
Get request data in the form ofDataInput
- Returns:
- Request data as
DataInput
-
readFields
public void readFields(DataInput input) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
public void write(DataOutput output) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceNettyMessage
-
getMessageType
public NettyMessageType getMessageType()
- Specified by:
getMessageType
in interfaceNettyMessage
-
-