I
- Vertex idM
- Message datapublic class SendWorkerOneMessageToManyRequest<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable> extends WritableRequest<I,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> implements WorkerRequest<I,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
Modifier and Type | Field and Description |
---|---|
protected ByteArrayOneMessageToManyIds<I,M> |
oneMessageToManyIds
ByteArrayOneMessageToManyIds encoding of vertexId & messages
|
conf, UNKNOWN_SIZE
Constructor and Description |
---|
SendWorkerOneMessageToManyRequest()
Constructor used for reflection only.
|
SendWorkerOneMessageToManyRequest(ByteArrayOneMessageToManyIds<I,M> oneMessageToManyIds,
ImmutableClassesGiraphConfiguration conf)
Constructor used to send request.
|
Modifier and Type | Method and Description |
---|---|
void |
doRequest(ServerData serverData)
Execute the request
|
int |
getSerializedSize()
Get the size of the request in serialized form.
|
RequestType |
getType()
Get the type of the request
|
void |
readFieldsRequest(DataInput input)
Serialize the request
|
void |
writeRequest(DataOutput output)
Deserialize the request
|
getClientId, getConf, getRequestId, readFields, setClientId, setConf, setRequestId, write
protected ByteArrayOneMessageToManyIds<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable> oneMessageToManyIds
public SendWorkerOneMessageToManyRequest()
public SendWorkerOneMessageToManyRequest(ByteArrayOneMessageToManyIds<I,M> oneMessageToManyIds, ImmutableClassesGiraphConfiguration conf)
oneMessageToManyIds
- ByteArrayOneMessageToManyIdsconf
- ImmutableClassesGiraphConfigurationpublic RequestType getType()
WritableRequest
getType
in class WritableRequest<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
public void readFieldsRequest(DataInput input) throws IOException
WritableRequest
input
- Input to read fields fromIOException
public void writeRequest(DataOutput output) throws IOException
WritableRequest
output
- Output to write the request toIOException
public int getSerializedSize()
WritableRequest
getSerializedSize
in class WritableRequest<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
public void doRequest(ServerData serverData)
WorkerRequest
doRequest
in interface WorkerRequest<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
serverData
- Accessible data that can be mutated per the requestCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.