public final class ByteArray extends Object implements RawComparable
构造器和说明 |
---|
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(BytesWritable other)
Constructing a ByteArray from a
BytesWritable . |
public ByteArray(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()
RawComparable
buffer
在接口中 RawComparable
public int offset()
RawComparable
offset
在接口中 RawComparable
public int size()
RawComparable
size
在接口中 RawComparable
Copyright © 2009 The Apache Software Foundation