public class HadoopDirectShuffleMessage extends Object implements Message, HadoopMessage
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
HadoopDirectShuffleMessage()
Default constructor.
|
HadoopDirectShuffleMessage(HadoopJobId jobId,
int reducer,
int cnt,
byte[] buf,
int bufLen,
int dataLen)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
buffer() |
int |
count() |
int |
dataLength() |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
HadoopJobId |
jobId() |
void |
onAckReceived()
Method called when ack message received.
|
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
int |
reducer() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public HadoopDirectShuffleMessage()
public HadoopDirectShuffleMessage(HadoopJobId jobId, int reducer, int cnt, byte[] buf, int bufLen, int dataLen)
jobId - Job ID.reducer - Reducer.cnt - Count.buf - Buffer.bufLen - Buffer length.dataLen - Data length.public HadoopJobId jobId()
public int reducer()
public int count()
public byte[] buffer()
public int dataLength()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void onAckReceived()
onAckReceived in interface Messagepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020