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) |
public void set(int left,
int right)
public int getFirst()
public int getSecond()
public void readFields(DataInput in) throws IOException
readFields in interface WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface WritableIOExceptionpublic int compareTo(SecondarySort.IntPair o)
compareTo in interface Comparable<SecondarySort.IntPair>Copyright © 2018 CERN. All Rights Reserved.