public abstract class BaseTupleComparator extends DeserializerComparator<Tuple> implements Configurable
Modifier and Type | Class and Description |
---|---|
protected static interface |
BaseTupleComparator.RawComparison |
groupComparators, keyTypes, lhsBuffer, lhsStream, rhsBuffer, rhsStream, tupleSerialization
Constructor and Description |
---|
BaseTupleComparator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canPerformRawComparisons() |
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2) |
int |
compare(Tuple lhs,
Tuple rhs) |
protected abstract BaseTupleComparator.RawComparison |
getByteComparison() |
protected BaseTupleComparator.RawComparison |
getStreamComparison() |
void |
setConf(Configuration conf) |
compareTuples, compareTuples, getFieldComparatorsFrom, getHadoopTupleInputStream, performRawComparison
getConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
public BaseTupleComparator()
protected boolean canPerformRawComparisons()
canPerformRawComparisons
in class DeserializerComparator<Tuple>
public void setConf(Configuration conf)
setConf
in interface Configurable
setConf
in class DeserializerComparator<Tuple>
protected BaseTupleComparator.RawComparison getStreamComparison()
protected abstract BaseTupleComparator.RawComparison getByteComparison()
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface RawComparator<Tuple>
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.