public class BytesComparator extends Object implements StreamComparator<BufferedInputStream>, Hasher<byte[]>, Comparator<byte[]>, Serializable
Hasher
, but for the Hasher interface to be applied during grouping,
sorting or joining, it must be set on a Fields
instance via
Fields.setComparator(Comparable, java.util.Comparator)
.Constructor and Description |
---|
BytesComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(BufferedInputStream lhsStream,
BufferedInputStream rhsStream) |
int |
compare(byte[] lhs,
byte[] rhs) |
int |
hashCode(byte[] value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public BytesComparator()
public int compare(byte[] lhs, byte[] rhs)
compare
in interface Comparator<byte[]>
public int compare(BufferedInputStream lhsStream, BufferedInputStream rhsStream)
compare
in interface StreamComparator<BufferedInputStream>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.