public class BytesComparator extends java.lang.Object implements StreamComparator<BufferedInputStream>, Hasher<byte[]>, java.util.Comparator<byte[]>, java.io.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) |
public BytesComparator()
public int compare(byte[] lhs, byte[] rhs)
compare
in interface java.util.Comparator<byte[]>
public int compare(BufferedInputStream lhsStream, BufferedInputStream rhsStream)
compare
in interface StreamComparator<BufferedInputStream>
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.