|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(java.lang.Object right)
|
int |
getFirst()
|
int |
getSecond()
|
int |
hashCode()
|
void |
readFields(java.io.DataInput in)
Read the two integers. |
void |
set(int left,
int right)
Set the left and right values. |
void |
write(java.io.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(java.io.DataInput in) throws java.io.IOException
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object right)
equals
in class java.lang.Object
public int compareTo(SecondarySort.IntPair o)
compareTo
in interface java.lang.Comparable<SecondarySort.IntPair>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |