public class PigTupleDefaultRawComparator extends org.apache.hadoop.io.WritableComparator implements TupleRawComparator
Constructor and Description |
---|
PigTupleDefaultRawComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
Compare two NullableTuples as raw bytes.
|
int |
compare(Object o1,
Object o2) |
org.apache.hadoop.conf.Configuration |
getConf() |
boolean |
hasComparedTupleNull()
Checks if one of the compared tuples had a null field.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
compare, compareBytes, define, get, get, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.io.WritableComparator
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
getConf
in class org.apache.hadoop.io.WritableComparator
public boolean hasComparedTupleNull()
TupleRawComparator
RawComparator.compare(byte[],int,int,byte[],int,int)
has returned a zero value (i.e. tuples are determined to be
equal).hasComparedTupleNull
in interface TupleRawComparator
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface org.apache.hadoop.io.RawComparator
compare
in class org.apache.hadoop.io.WritableComparator
public int compare(Object o1, Object o2)
compare
in interface Comparator
compare
in class org.apache.hadoop.io.WritableComparator
Copyright © 2007-2012 The Apache Software Foundation