com.cloudera.crunch.lib
Class JoinUtils.TupleWritableComparator

java.lang.Object
  extended by com.cloudera.crunch.lib.JoinUtils.TupleWritableComparator
All Implemented Interfaces:
Comparator<TupleWritable>, org.apache.hadoop.io.RawComparator<TupleWritable>
Enclosing class:
JoinUtils

public static class JoinUtils.TupleWritableComparator
extends Object
implements org.apache.hadoop.io.RawComparator<TupleWritable>


Constructor Summary
JoinUtils.TupleWritableComparator()
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
           
 int compare(TupleWritable o1, TupleWritable o2)
           
 
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

JoinUtils.TupleWritableComparator

public JoinUtils.TupleWritableComparator()
Method Detail

compare

public int compare(TupleWritable o1,
                   TupleWritable o2)
Specified by:
compare in interface Comparator<TupleWritable>

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<TupleWritable>


Copyright © 2012. All Rights Reserved.