com.datasalt.pangool.utils
Class AvroBinaryComparator

java.lang.Object
  extended by com.datasalt.pangool.utils.AvroBinaryComparator
All Implemented Interfaces:
Serializable, Comparator, org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.RawComparator

public class AvroBinaryComparator
extends Object
implements org.apache.hadoop.io.RawComparator, Serializable, org.apache.hadoop.conf.Configurable

See Also:
Serialized Form

Constructor Summary
AvroBinaryComparator(org.apache.avro.Schema schema)
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
           
 int compare(Object object1, Object object2)
           
 org.apache.hadoop.conf.Configuration getConf()
           
 void setConf(org.apache.hadoop.conf.Configuration notUsed)
           
 
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

AvroBinaryComparator

public AvroBinaryComparator(org.apache.avro.Schema schema)
Method Detail

setConf

public void setConf(org.apache.hadoop.conf.Configuration notUsed)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

compare

public int compare(Object object1,
                   Object object2)
Specified by:
compare in interface Comparator

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Specified by:
compare in interface org.apache.hadoop.io.RawComparator


Copyright © –2014 Datasalt Systems S.L.. All rights reserved.