public static class SecondarySort.IntPair extends Object implements WritableComparable<SecondarySort.IntPair>
Modifier and Type | Class and Description |
---|---|
static class |
SecondarySort.IntPair.Comparator
A Comparator that compares serialized IntPair.
|
Constructor and Description |
---|
IntPair() |
Modifier and Type | Method and Description |
---|---|
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
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 compareTo(SecondarySort.IntPair o)
compareTo
in interface Comparable<SecondarySort.IntPair>
Copyright © 2010 The Apache Software Foundation