Class NettyWritableMessage
- java.lang.Object
-
- com.alibaba.graphscope.graph.comm.requests.NettyWritableMessage
-
- All Implemented Interfaces:
NettyMessage
,org.apache.hadoop.io.Writable
public class NettyWritableMessage extends Object implements NettyMessage
-
-
Constructor Summary
Constructors Constructor Description NettyWritableMessage()
NettyWritableMessage(org.apache.hadoop.io.Writable data, int repeatTimes, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.io.Writable
getData()
String
getId()
NettyMessageType
getMessageType()
int
getSerializedSize()
void
readFields(DataInput input)
String
toString()
void
write(DataOutput output)
-
-
-
Constructor Detail
-
NettyWritableMessage
public NettyWritableMessage()
-
NettyWritableMessage
public NettyWritableMessage(org.apache.hadoop.io.Writable data, int repeatTimes, String id)
-
-
Method Detail
-
getId
public String getId()
-
getData
public org.apache.hadoop.io.Writable getData()
-
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
-
-