public final class Partition<P extends Simple> extends Transferable
Constructor and Description |
---|
Partition(int partitionID,
P partition) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.DataOutput out)
Encode the partition data as DataOutput
|
void |
free()
Free and reset the partition
|
P |
get()
Get the partition body
|
int |
getNumEnocdeBytes()
Get the number bytes of encoded data.
|
int |
id()
Get the partition ID
|
void |
release()
Release and reset the partition
|
public Partition(int partitionID, P partition)
public int id()
public P get()
public int getNumEnocdeBytes()
getNumEnocdeBytes
in class Transferable
public void encode(java.io.DataOutput out) throws java.io.IOException
encode
in class Transferable
java.io.IOException
public void release()
release
in class Transferable
public void free()
free
in class Transferable