public class BytesComparator extends java.lang.Object implements cascading.tuple.StreamComparator<BufferedInputStream>, cascading.tuple.Hasher<byte[]>, java.util.Comparator<byte[]>, java.io.Serializable
Note that BytesComparator implements 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 cascading.tuple.StreamComparator<BufferedInputStream>public int hashCode(byte[] value)
hashCode in interface cascading.tuple.Hasher<byte[]>Copyright © 2007-2021 Cascading Maintainers. All Rights Reserved.