|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.types.OrderedBytesBase<byte[]>
org.apache.hadoop.hbase.types.OrderedBlobVar
@InterfaceAudience.Private @InterfaceStability.Evolving public class OrderedBlobVar
An alternative to OrderedBlob
for use by Struct
fields that
do not terminate the fields list. Built on
OrderedBytes.encodeBlobVar(PositionedByteRange, byte[], int, int, Order)
.
Field Summary | |
---|---|
static OrderedBlobVar |
ASCENDING
|
static OrderedBlobVar |
DESCENDING
|
Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
---|
order |
Constructor Summary | |
---|---|
protected |
OrderedBlobVar(Order order)
|
Method Summary | |
---|---|
byte[] |
decode(PositionedByteRange src)
Read an instance of T from the buffer src . |
int |
encode(PositionedByteRange dst,
byte[] val)
Write instance val into buffer dst . |
int |
encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write a subset of val to buff . |
Class<byte[]> |
encodedClass()
Inform consumers over what type this DataType operates. |
int |
encodedLength(byte[] val)
Inform consumers how long the encoded byte[] will be. |
Methods inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
---|
getOrder, isNullable, isOrderPreserving, isSkippable, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OrderedBlobVar ASCENDING
public static final OrderedBlobVar DESCENDING
Constructor Detail |
---|
protected OrderedBlobVar(Order order)
Method Detail |
---|
public int encodedLength(byte[] val)
DataType
byte[]
will be.
val
- The value to check.
val
.apublic Class<byte[]> encodedClass()
DataType
DataType
operates. Useful
when working with bare DataType
instances.
public byte[] decode(PositionedByteRange src)
DataType
T
from the buffer src
.
src
- the buffer containing the encoded value.public int encode(PositionedByteRange dst, byte[] val)
DataType
val
into buffer dst
.
dst
- the buffer containing the encoded value.val
- the value to encode onto dst
.
public int encode(PositionedByteRange dst, byte[] val, int voff, int vlen)
val
to buff
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |