public abstract class DeserializerComparator<T> extends Configured implements RawComparator<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.Comparator[] |
groupComparators |
protected java.lang.Class[] |
keyTypes |
protected cascading.tuple.hadoop.io.BufferedInputStream |
lhsBuffer |
protected cascading.tuple.hadoop.io.HadoopTupleInputStream |
lhsStream |
protected cascading.tuple.hadoop.io.BufferedInputStream |
rhsBuffer |
protected cascading.tuple.hadoop.io.HadoopTupleInputStream |
rhsStream |
protected cascading.tuple.hadoop.TupleSerialization |
tupleSerialization |
Constructor and Description |
---|
DeserializerComparator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canPerformRawComparisons() |
protected int |
compareTuples(java.lang.Class[] types,
java.util.Comparator[] comparators) |
protected int |
compareTuples(java.util.Comparator[] comparators,
Tuple lhs,
Tuple rhs) |
static java.util.Comparator[] |
getFieldComparatorsFrom(Configuration conf,
java.lang.String name) |
protected cascading.tuple.hadoop.io.HadoopTupleInputStream |
getHadoopTupleInputStream(cascading.tuple.hadoop.io.BufferedInputStream lhsBuffer,
cascading.tuple.hadoop.TupleSerialization.SerializationElementReader elementReader) |
protected boolean |
performRawComparison() |
void |
setConf(Configuration conf) |
getConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare
protected cascading.tuple.hadoop.io.BufferedInputStream lhsBuffer
protected cascading.tuple.hadoop.io.BufferedInputStream rhsBuffer
protected cascading.tuple.hadoop.TupleSerialization tupleSerialization
protected cascading.tuple.hadoop.io.HadoopTupleInputStream lhsStream
protected cascading.tuple.hadoop.io.HadoopTupleInputStream rhsStream
protected java.lang.Class[] keyTypes
protected java.util.Comparator[] groupComparators
public DeserializerComparator()
protected boolean canPerformRawComparisons()
protected boolean performRawComparison()
public void setConf(Configuration conf)
setConf
in interface Configurable
setConf
in class Configured
protected cascading.tuple.hadoop.io.HadoopTupleInputStream getHadoopTupleInputStream(cascading.tuple.hadoop.io.BufferedInputStream lhsBuffer, cascading.tuple.hadoop.TupleSerialization.SerializationElementReader elementReader)
public static java.util.Comparator[] getFieldComparatorsFrom(Configuration conf, java.lang.String name)
protected final int compareTuples(java.util.Comparator[] comparators, Tuple lhs, Tuple rhs)
protected final int compareTuples(java.lang.Class[] types, java.util.Comparator[] comparators) throws java.io.IOException
java.io.IOException
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.