This project has retired. For details please refer to its Attic page.
JoinUtils.TupleWritableComparator (Apache Crunch 0.7.0 API)

org.apache.crunch.lib.join
Class JoinUtils.TupleWritableComparator

java.lang.Object
  extended by org.apache.crunch.lib.join.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
equals, 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 © 2013 The Apache Software Foundation. All Rights Reserved.