|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.hadoop.io.WritableComparator
org.htuple.TupleComparator
public abstract class TupleComparator
A Comparator for Tuple instances, which can compare a subset of the elements in
the tuple, which is useful for sorting and grouping when secondary-sort behavior is desired.
WritableComparator.compare(byte[], int, int, byte[], int, int).
| Constructor Summary | |
|---|---|
TupleComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(org.apache.hadoop.io.WritableComparable o1,
org.apache.hadoop.io.WritableComparable o2)
|
org.apache.hadoop.conf.Configuration |
getConf()
|
abstract String |
getIndexConfigName()
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
| Methods inherited from class org.apache.hadoop.io.WritableComparator |
|---|
compare, compare, compareBytes, define, get, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public TupleComparator()
| Method Detail |
|---|
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic abstract String getIndexConfigName()
public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurable
public int compare(org.apache.hadoop.io.WritableComparable o1,
org.apache.hadoop.io.WritableComparable o2)
compare in class org.apache.hadoop.io.WritableComparator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||