|
||||||||||
| 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(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 Writablein - DataInput to deseriablize this object from.
IOException
public void write(DataOutput out)
throws IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
IOExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object right)
equals in class Objectpublic 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 | |||||||||