public class PartitionInfoWritable extends java.lang.Object implements org.apache.hadoop.io.WritableComparable<PartitionInfoWritable>
PartitionInfo
Constructor and Description |
---|
PartitionInfoWritable()
Creates a new instance
|
PartitionInfoWritable(PartitionInfo partition)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PartitionInfoWritable piw) |
PartitionInfo |
get()
Gets the current partition
|
void |
readFields(java.io.DataInput in) |
void |
set(PartitionInfo partition)
Sets a partition
|
void |
write(java.io.DataOutput out) |
public PartitionInfoWritable()
public PartitionInfoWritable(PartitionInfo partition)
partition
-public void set(PartitionInfo partition)
partition
-public PartitionInfo get()
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int compareTo(PartitionInfoWritable piw)
compareTo
in interface java.lang.Comparable<PartitionInfoWritable>