Package org.apache.hadoop.hbase.types
Class RawStringTerminated
java.lang.Object
org.apache.hadoop.hbase.types.TerminatedWrapper<String>
org.apache.hadoop.hbase.types.RawStringTerminated
An
DataType
that encodes variable-length values encoded using
Bytes.toBytes(String)
. Includes a termination marker
following the raw byte[]
value. Intended to make it easier to transition away from direct
use of Bytes
.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.types.TerminatedWrapper
term, wrapped
-
Constructor Summary
ConstructorDescriptionRawStringTerminated
(byte[] term) Create aRawStringTerminated
using the specified terminator.RawStringTerminated
(String term) Create aRawStringTerminated
using the specified terminator.RawStringTerminated
(Order order, byte[] term) Create aRawStringTerminated
using the specified terminator andorder
.RawStringTerminated
(Order order, String term) Create aRawStringTerminated
using the specified terminator andorder
. -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.types.TerminatedWrapper
decode, encode, encodedClass, encodedLength, getOrder, isNullable, isOrderPreserving, isSkippable, skip, terminatorPosition
-
Constructor Details
-
RawStringTerminated
Create aRawStringTerminated
using the specified terminator andorder
.- Throws:
IllegalArgumentException
- ifterm
isnull
or empty.
-
RawStringTerminated
Create aRawStringTerminated
using the specified terminator andorder
.- Throws:
IllegalArgumentException
- ifterm
isnull
or empty.
-
RawStringTerminated
Create aRawStringTerminated
using the specified terminator.- Throws:
IllegalArgumentException
- ifterm
isnull
or empty.
-
RawStringTerminated
Create aRawStringTerminated
using the specified terminator.- Throws:
IllegalArgumentException
- ifterm
isnull
or empty.
-