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