public static class SecondarySort.IntPair extends java.lang.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 |
|---|
SecondarySort.IntPair() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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 org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object right)
equals in class java.lang.Objectpublic int compareTo(SecondarySort.IntPair o)
compareTo in interface java.lang.Comparable<SecondarySort.IntPair>Copyright © 2009 The Apache Software Foundation