|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.types.TerminatedWrapper<byte[]>
org.apache.hadoop.hbase.types.RawBytesTerminated
@InterfaceAudience.Public @InterfaceStability.Evolving public class RawBytesTerminated
An DataType
that encodes variable-length values encoded using
Bytes.putBytes(byte[], int, byte[], int, int)
. Includes a
termination marker following the raw byte[]
value. Intended to
make it easier to transition away from direct use of Bytes
.
Bytes.putBytes(byte[], int, byte[], int, int)
,
RawBytes
,
OrderedBlob
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.types.TerminatedWrapper |
---|
term, wrapped |
Constructor Summary | |
---|---|
RawBytesTerminated(byte[] term)
Create a RawBytesTerminated using the specified terminator. |
|
RawBytesTerminated(Order order,
byte[] term)
Create a RawBytesTerminated using the specified terminator and
order . |
|
RawBytesTerminated(Order order,
String term)
Create a RawBytesTerminated using the specified terminator and
order . |
|
RawBytesTerminated(String term)
Create a RawBytesTerminated using the specified terminator. |
Method Summary | |
---|---|
byte[] |
decode(PositionedByteRange src,
int length)
Read a byte[] from the buffer src . |
int |
encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write val into dst , respecting offset and
length . |
Methods inherited from class org.apache.hadoop.hbase.types.TerminatedWrapper |
---|
decode, encode, encodedClass, encodedLength, getOrder, isNullable, isOrderPreserving, isSkippable, skip, terminatorPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawBytesTerminated(Order order, byte[] term)
RawBytesTerminated
using the specified terminator and
order
.
IllegalArgumentException
- if term
is null
or empty.public RawBytesTerminated(Order order, String term)
RawBytesTerminated
using the specified terminator and
order
.
IllegalArgumentException
- if term
is null
or empty.public RawBytesTerminated(byte[] term)
RawBytesTerminated
using the specified terminator.
IllegalArgumentException
- if term
is null
or empty.public RawBytesTerminated(String term)
RawBytesTerminated
using the specified terminator.
IllegalArgumentException
- if term
is null
or empty.Method Detail |
---|
public byte[] decode(PositionedByteRange src, int length)
byte[]
from the buffer src
.
public int encode(PositionedByteRange dst, byte[] val, int voff, int vlen)
val
into dst
, respecting offset
and
length
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |