public class PartitionCount extends Writable
Constructor and Description |
---|
PartitionCount() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the data
|
int |
getNumWriteBytes()
Get the number of bytes of the encoded data
|
int |
getPartitionCount()
Get the count of partitions
|
int |
getWorkerID()
Get the ID of the worker
|
void |
read(java.io.DataInput in)
Read this from DataInput
|
void |
setPartitionCount(int pCount)
Set the count of partitions
|
void |
setWorkerID(int workerID)
Set the workerID
|
void |
write(java.io.DataOutput out)
Write this to DataOutput
|
create, encode, forClass, free, getNumEnocdeBytes, newInstance, release
public void write(java.io.DataOutput out) throws java.io.IOException
public void read(java.io.DataInput in) throws java.io.IOException
public void setWorkerID(int workerID)
workerID
- the ID of the workerpublic int getWorkerID()
public void setPartitionCount(int pCount)
pCount
- the count of partitionspublic int getPartitionCount()
public int getNumWriteBytes()
getNumWriteBytes
in class Writable