cascading.tuple.hadoop
Class BytesComparator

java.lang.Object
  extended by cascading.tuple.hadoop.BytesComparator
All Implemented Interfaces:
StreamComparator<BufferedInputStream>, Serializable, Comparator<byte[]>

public class BytesComparator
extends Object
implements StreamComparator<BufferedInputStream>, Comparator<byte[]>, Serializable

Class BytesComparator is used to compare arrays of bytes.

See Also:
Serialized Form

Constructor Summary
BytesComparator()
           
 
Method Summary
 int compare(BufferedInputStream lhsStream, BufferedInputStream rhsStream)
           
 int compare(byte[] lhs, byte[] rhs)
           
 
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

BytesComparator

public BytesComparator()
Method Detail

compare

public int compare(byte[] lhs,
                   byte[] rhs)
Specified by:
compare in interface Comparator<byte[]>

compare

public int compare(BufferedInputStream lhsStream,
                   BufferedInputStream rhsStream)
Specified by:
compare in interface StreamComparator<BufferedInputStream>


Copyright © 2007-2010 Concurrent, Inc. All Rights Reserved.