This project has retired. For details please refer to its
Attic page.
ReverseAvroComparator (Apache Crunch 0.9.0 API)
org.apache.crunch.lib.sort
Class ReverseAvroComparator<T>
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.crunch.lib.sort.ReverseAvroComparator<T>
- All Implemented Interfaces:
- Comparator<org.apache.avro.mapred.AvroKey<T>>, org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.RawComparator<org.apache.avro.mapred.AvroKey<T>>
public class ReverseAvroComparator<T>
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.io.RawComparator<org.apache.avro.mapred.AvroKey<T>>
Method Summary |
int |
compare(org.apache.avro.mapred.AvroKey<T> o1,
org.apache.avro.mapred.AvroKey<T> o2)
|
int |
compare(byte[] arg0,
int arg1,
int arg2,
byte[] arg3,
int arg4,
int arg5)
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseAvroComparator
public ReverseAvroComparator()
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
- Overrides:
setConf
in class org.apache.hadoop.conf.Configured
compare
public int compare(org.apache.avro.mapred.AvroKey<T> o1,
org.apache.avro.mapred.AvroKey<T> o2)
- Specified by:
compare
in interface Comparator<org.apache.avro.mapred.AvroKey<T>>
compare
public int compare(byte[] arg0,
int arg1,
int arg2,
byte[] arg3,
int arg4,
int arg5)
- Specified by:
compare
in interface org.apache.hadoop.io.RawComparator<org.apache.avro.mapred.AvroKey<T>>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.