public class Data
extends java.lang.Object
Constructor and Description |
---|
Data(ByteArray headArr) |
Data(ByteArray headArr,
ByteArray bodyArr) |
Data(byte type,
java.lang.String conName,
int wID,
java.util.List<Transferable> object,
int s)
Construct a data
|
Data(byte type,
java.lang.String conName,
int wID,
java.util.List<Transferable> object,
int s,
java.lang.String opName)
Construct an operation data
|
Data(byte type,
java.lang.String conName,
int wID,
java.util.List<Transferable> object,
int s,
java.lang.String opName,
int parID)
Construct a partition data in an operation
|
Modifier and Type | Method and Description |
---|---|
DataStatus |
decodeBodyArray()
Decode the bodyArray as the body
|
DataStatus |
decodeHeadArray()
Decode the headArray as the head
|
DataStatus |
encodeBody()
Encode the body as a ByteArray
|
DataStatus |
encodeHead()
Encode the head as a ByteArray
|
java.util.List<Transferable> |
getBody()
Get the body
|
ByteArray |
getBodyArray()
Get the body array
|
int |
getBodySize()
Get the size of the body
|
DataStatus |
getBodyStatus()
Get the DataStatus of the body
|
byte |
getBodyType()
Get the type of the body
|
java.lang.String |
getContextName()
Get the name of the context
|
ByteArray |
getHeadArray()
Get the head array
|
DataStatus |
getHeadStatus()
Get the DataStatus of the head
|
java.lang.String |
getOperationName()
Get the name of the operation
|
int |
getPartitionID()
Get the ID of the partition
|
int |
getWorkerID()
Get the ID of the Worker
|
boolean |
isData()
Check if this is Data Data > Operation Data >
Partition Data
|
boolean |
isOperationData()
Check if this is an operation data
|
boolean |
isPartitionData()
Check if this is a partition data
|
void |
release()
Release the Data
|
void |
releaseBodyArray()
Release the data body array.
|
void |
releaseHeadArray()
Release the head array.
|
public Data(byte type, java.lang.String conName, int wID, java.util.List<Transferable> object, int s)
public Data(byte type, java.lang.String conName, int wID, java.util.List<Transferable> object, int s, java.lang.String opName)
public Data(byte type, java.lang.String conName, int wID, java.util.List<Transferable> object, int s, java.lang.String opName, int parID)
public Data(ByteArray headArr)
public boolean isData()
public boolean isOperationData()
public boolean isPartitionData()
public byte getBodyType()
public java.lang.String getContextName()
public int getWorkerID()
public java.lang.String getOperationName()
public int getPartitionID()
public int getBodySize()
public java.util.List<Transferable> getBody()
public ByteArray getHeadArray()
public ByteArray getBodyArray()
public DataStatus getHeadStatus()
public DataStatus getBodyStatus()
public void releaseHeadArray()
public void releaseBodyArray()
public void release()
public DataStatus decodeHeadArray()
public DataStatus decodeBodyArray()
public DataStatus encodeHead()
public DataStatus encodeBody()