|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.io.WritableComparator
org.apache.pig.ComparisonFunc
@InterfaceAudience.Public @InterfaceStability.Stable @Deprecated public abstract class ComparisonFunc
An interface for custom order by comparator function.
| Field Summary | |
|---|---|
protected PigProgressable |
reporter
Deprecated. |
| Constructor Summary | |
|---|---|
ComparisonFunc()
Deprecated. |
|
| Method Summary | |
|---|---|
abstract int |
compare(Tuple t1,
Tuple t2)
Deprecated. This callback method must be implemented by all subclasses. |
int |
compare(org.apache.hadoop.io.WritableComparable a,
org.apache.hadoop.io.WritableComparable b)
Deprecated. Compare two tuples. |
void |
setReporter(PigProgressable reporter)
Deprecated. Set the reporter. |
| 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 |
| Field Detail |
|---|
protected PigProgressable reporter
| Constructor Detail |
|---|
public ComparisonFunc()
| Method Detail |
|---|
public int compare(org.apache.hadoop.io.WritableComparable a,
org.apache.hadoop.io.WritableComparable b)
compare in class org.apache.hadoop.io.WritableComparatora - first tupleb - tuple to compare a to
public abstract int compare(Tuple t1,
Tuple t2)
Comparator.
t1 - the first Tuple to be compared.t2 - the second Tuple to be compared.
IOExceptionComparatorpublic void setReporter(PigProgressable reporter)
reporter - Progress reporter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||