Class GidLongWritableRequest
- java.lang.Object
-
- com.alibaba.graphscope.parallel.netty.request.WritableRequest
-
- com.alibaba.graphscope.parallel.netty.request.impl.GidLongWritableRequest
-
- All Implemented Interfaces:
org.apache.giraph.conf.GiraphConfigurationSettable,org.apache.giraph.conf.ImmutableClassesGiraphConfigurable,org.apache.hadoop.io.Writable
public class GidLongWritableRequest extends WritableRequest
-
-
Field Summary
-
Fields inherited from class com.alibaba.graphscope.parallel.netty.request.WritableRequest
conf, UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description GidLongWritableRequest()GidLongWritableRequest(long gid, org.apache.hadoop.io.LongWritable writable)
-
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()longgetGid()intgetNumBytes()Should only return number of bytes in child class.RequestTypegetRequestType()Serialization of request type is taken care by encoder.longgetValue()org.apache.hadoop.io.LongWritablegetWritable()voidreadFieldsRequest(DataInput input)voidsetBuffer(io.netty.buffer.ByteBuf buf)StringtoString()voidwriteFieldsRequest(DataOutput output)-
Methods inherited from class com.alibaba.graphscope.parallel.netty.request.WritableRequest
getConf, readFields, setConf, write
-
-
-
-
Method Detail
-
getGid
public long getGid()
-
getWritable
public org.apache.hadoop.io.LongWritable getWritable()
-
getValue
public long getValue()
-
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()
Should only return number of bytes in child class.- Specified by:
getNumBytesin classWritableRequest- Returns:
- number of bytes
-
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-
-
doRequest
public void doRequest(MessageStore messageStore)
Apply this request on this message storage.- Specified by:
doRequestin classWritableRequest- Parameters:
messageStore- message store.
-
-