|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.examples.SecondarySort.IntPair
public static class SecondarySort.IntPair
Define a pair of integers that are writable. They are serialized in a byte comparable format.
Nested Class Summary | |
---|---|
static class |
SecondarySort.IntPair.Comparator
A Comparator that compares serialized IntPair. |
Constructor Summary | |
---|---|
SecondarySort.IntPair()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecondarySort.IntPair()
Method Detail |
---|
public void set(int left, int right)
public int getFirst()
public int getSecond()
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public int hashCode()
hashCode
in class Object
public boolean equals(Object right)
equals
in class Object
public int compareTo(SecondarySort.IntPair o)
compareTo
in interface Comparable<SecondarySort.IntPair>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |