public static class SecondarySort.IntPair extends Object implements WritableComparable<SecondarySort.IntPair>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SecondarySort.IntPair.Comparator
A Comparator that compares serialized IntPair.
|
| 构造器和说明 |
|---|
SecondarySort.IntPair() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(SecondarySort.IntPair o) |
boolean |
equals(Object right) |
int |
getFirst() |
int |
getSecond() |
int |
hashCode() |
void |
readFields(DataInput in)
Read the two integers.
|
void |
set(int left,
int right)
Set the left and right values.
|
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public void set(int left,
int right)
public int getFirst()
public int getSecond()
public void readFields(DataInput in) throws IOException
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionpublic int compareTo(SecondarySort.IntPair o)
compareTo 在接口中 Comparable<SecondarySort.IntPair>Copyright © 2009 The Apache Software Foundation