public class NullComparator extends WritableByteArrayComparable
Bytes.compareTo(byte[], byte[])
.Constructor and Description |
---|
NullComparator()
Nullary constructor for Writable, do not use
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(byte[] value) |
int |
compareTo(byte[] value,
int offset,
int length)
Special compareTo method for subclasses, to avoid
copying byte[] unnecessarily.
|
getValue, readFields, write
public NullComparator()
public int compareTo(byte[] value)
compareTo
in interface Comparable<byte[]>
compareTo
in class WritableByteArrayComparable
public int compareTo(byte[] value, int offset, int length)
WritableByteArrayComparable
compareTo
in class WritableByteArrayComparable
value
- byte[] to compareoffset
- offset into valuelength
- number of bytes to compareCopyright © 2014 The Apache Software Foundation. All Rights Reserved.