public static class SecondarySort.IntPair extends Object implements org.apache.hadoop.io.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 org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(SecondarySort.IntPair o)
compareTo in interface Comparable<SecondarySort.IntPair>Copyright © 2008–2020 Apache Software Foundation. All rights reserved.