Class OneLongWritableRequest
- java.lang.Object
-
- com.alibaba.graphscope.parallel.netty.request.WritableRequest
-
- com.alibaba.graphscope.parallel.netty.request.impl.OneLongWritableRequest
-
- All Implemented Interfaces:
org.apache.giraph.conf.GiraphConfigurationSettable,org.apache.giraph.conf.ImmutableClassesGiraphConfigurable,org.apache.hadoop.io.Writable
public class OneLongWritableRequest extends WritableRequest
-
-
Field Summary
-
Fields inherited from class com.alibaba.graphscope.parallel.netty.request.WritableRequest
conf, UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description OneLongWritableRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoRequest(MessageStore messageStore)Apply this request on this message storage.io.netty.buffer.ByteBufgetBuffer()org.apache.hadoop.io.LongWritablegetData()intgetNumBytes()longgetRawValue()RequestTypegetRequestType()Serialization of request type is taken care by encoder.voidreadFieldsRequest(DataInput input)voidsetBuffer(io.netty.buffer.ByteBuf buf)voidsetData(org.apache.hadoop.io.LongWritable value)voidwriteFieldsRequest(DataOutput output)-
Methods inherited from class com.alibaba.graphscope.parallel.netty.request.WritableRequest
getConf, readFields, setConf, write
-
-
-
-
Method Detail
-
getData
public org.apache.hadoop.io.LongWritable getData()
-
setData
public void setData(org.apache.hadoop.io.LongWritable value)
-
getRawValue
public long getRawValue()
-
getRequestType
public RequestType getRequestType()
Description copied from class:WritableRequestSerialization of request type is taken care by encoder.- Specified by:
getRequestTypein classWritableRequest- Returns:
- request type.
-
readFieldsRequest
public void readFieldsRequest(DataInput input) throws IOException
- Specified by:
readFieldsRequestin classWritableRequest- Throws:
IOException
-
writeFieldsRequest
public void writeFieldsRequest(DataOutput output) throws IOException
- Specified by:
writeFieldsRequestin classWritableRequest- Throws:
IOException
-
getNumBytes
public int getNumBytes()
- Specified by:
getNumBytesin classWritableRequest
-
doRequest
public void doRequest(MessageStore messageStore)
Apply this request on this message storage.- Specified by:
doRequestin classWritableRequest- Parameters:
messageStore- message store.
-
getBuffer
public io.netty.buffer.ByteBuf getBuffer()
- Specified by:
getBufferin classWritableRequest
-
setBuffer
public void setBuffer(io.netty.buffer.ByteBuf buf)
- Specified by:
setBufferin classWritableRequest- Parameters:
buf-
-
-