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
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
public int compareTo(SecondarySort.IntPair o)
compareTo
在接口中 Comparable<SecondarySort.IntPair>
Copyright © 2009 The Apache Software Foundation