public final class ByteArray extends Object implements RawComparable
| Constructor and Description |
|---|
ByteArray(byte[] buffer)
Wrap a whole byte array as a RawComparable.
|
ByteArray(byte[] buffer,
int offset,
int len)
Wrap a partial byte array as a RawComparable.
|
ByteArray(org.apache.hadoop.io.BytesWritable other)
Constructing a ByteArray from a
BytesWritable. |
public ByteArray(org.apache.hadoop.io.BytesWritable other)
BytesWritable.other - public ByteArray(byte[] buffer)
buffer - the byte array buffer.public ByteArray(byte[] buffer,
int offset,
int len)
buffer - the byte array buffer.offset - the starting offsetlen - the length of the consecutive bytes to be wrapped.public byte[] buffer()
RawComparablebuffer in interface RawComparablepublic int offset()
RawComparableoffset in interface RawComparablepublic int size()
RawComparablesize in interface RawComparableCopyright © 2007-2012 The Apache Software Foundation