Class ByteBufRequest
- java.lang.Object
-
- com.alibaba.graphscope.parallel.netty.request.WritableRequest
-
- com.alibaba.graphscope.parallel.netty.request.impl.ByteBufRequest
-
- All Implemented Interfaces:
org.apache.giraph.conf.GiraphConfigurationSettable
,org.apache.giraph.conf.ImmutableClassesGiraphConfigurable
,org.apache.hadoop.io.Writable
public class ByteBufRequest extends WritableRequest
A special type of request which store byteBuf as store.
-
-
Field Summary
-
Fields inherited from class com.alibaba.graphscope.parallel.netty.request.WritableRequest
conf, UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description ByteBufRequest()
Default constructor for reflection usage.ByteBufRequest(io.netty.buffer.ByteBuf in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doRequest(MessageStore messageStore)
Apply this request on this message storage.io.netty.buffer.ByteBuf
getBuffer()
int
getNumBytes()
RequestType
getRequestType()
Serialization of request type is taken care by encoder.void
readFieldsRequest(DataInput input)
void
setBuffer(io.netty.buffer.ByteBuf buf)
String
toString()
void
writeFieldsRequest(DataOutput output)
-
Methods inherited from class com.alibaba.graphscope.parallel.netty.request.WritableRequest
getConf, readFields, setConf, write
-
-
-
-
Method Detail
-
getRequestType
public RequestType getRequestType()
Serialization of request type is taken care by encoder.- Specified by:
getRequestType
in classWritableRequest
- Returns:
- request type.
-
readFieldsRequest
public void readFieldsRequest(DataInput input) throws IOException
- Specified by:
readFieldsRequest
in classWritableRequest
- Throws:
IOException
-
writeFieldsRequest
public void writeFieldsRequest(DataOutput output) throws IOException
- Specified by:
writeFieldsRequest
in classWritableRequest
- Throws:
IOException
-
getNumBytes
public int getNumBytes()
- Specified by:
getNumBytes
in classWritableRequest
-
getBuffer
public io.netty.buffer.ByteBuf getBuffer()
- Specified by:
getBuffer
in classWritableRequest
-
setBuffer
public void setBuffer(io.netty.buffer.ByteBuf buf)
- Specified by:
setBuffer
in classWritableRequest
- Parameters:
buf
-
-
doRequest
public void doRequest(MessageStore messageStore)
Apply this request on this message storage.- Specified by:
doRequest
in classWritableRequest
- Parameters:
messageStore
- message store.
-
-