java.lang.Comparable<SecondarySort.IntPair>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<SecondarySort.IntPair>public static class SecondarySort.IntPair extends java.lang.Object implements org.apache.hadoop.io.WritableComparable<SecondarySort.IntPair>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SecondarySort.IntPair.Comparator |
A Comparator that compares serialized IntPair.
|
| Constructor | Description |
|---|---|
IntPair() |
| Modifier and Type | Method | 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 © 2008–2025 Apache Software Foundation. All rights reserved.