@InterfaceAudience.Public public class RawStringTerminated extends TerminatedWrapper<String>
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
.term, wrapped
Constructor and Description |
---|
RawStringTerminated(byte[] term)
Create a
RawStringTerminated using the specified terminator. |
RawStringTerminated(Order order,
byte[] term)
Create a
RawStringTerminated using the specified terminator and
order . |
RawStringTerminated(Order order,
String term)
Create a
RawStringTerminated using the specified terminator and
order . |
RawStringTerminated(String term)
Create a
RawStringTerminated using the specified terminator. |
decode, encode, encodedClass, encodedLength, getOrder, isNullable, isOrderPreserving, isSkippable, skip, terminatorPosition
public RawStringTerminated(Order order, byte[] term)
RawStringTerminated
using the specified terminator and
order
.IllegalArgumentException
- if term
is null
or empty.public RawStringTerminated(Order order, String term)
RawStringTerminated
using the specified terminator and
order
.IllegalArgumentException
- if term
is null
or empty.public RawStringTerminated(byte[] term)
RawStringTerminated
using the specified terminator.IllegalArgumentException
- if term
is null
or empty.public RawStringTerminated(String term)
RawStringTerminated
using the specified terminator.IllegalArgumentException
- if term
is null
or empty.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.