public abstract class WritableByteArrayComparable extends Object implements org.apache.hadoop.io.Writable, Comparable<byte[]>
Constructor and Description |
---|
WritableByteArrayComparable()
Nullary constructor, for Writable
|
WritableByteArrayComparable(byte[] value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(byte[] value) |
abstract int |
compareTo(byte[] value,
int offset,
int length)
Special compareTo method for subclasses, to avoid
copying byte[] unnecessarily.
|
byte[] |
getValue() |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public WritableByteArrayComparable()
public WritableByteArrayComparable(byte[] value)
value
- the value to compare againstpublic byte[] getValue()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(byte[] value)
compareTo
in interface Comparable<byte[]>
public abstract int compareTo(byte[] value, int offset, int length)
value
- byte[] to compareoffset
- offset into valuelength
- number of bytes to compareCopyright © 2014 The Apache Software Foundation. All Rights Reserved.