|
||||||||||
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.OrderedBlob
@InterfaceAudience.Public @InterfaceStability.Evolving public class OrderedBlob
A byte[]
of variable-length. Build on
OrderedBytes.encodeBlobCopy(PositionedByteRange, byte[], int, int, Order)
.
Field Summary | |
---|---|
static OrderedBlob |
ASCENDING
|
static OrderedBlob |
DESCENDING
|
Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
---|
order |
Constructor Summary | |
---|---|
protected |
OrderedBlob(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 dst . |
Class<byte[]> |
encodedClass()
Inform consumers over what type this DataType operates. |
int |
encodedLength(byte[] val)
Inform consumers how long the encoded byte[] will be. |
boolean |
isSkippable()
Indicates whether this instance is able to skip over it's encoded value. |
Methods inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
---|
getOrder, isNullable, isOrderPreserving, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OrderedBlob ASCENDING
public static final OrderedBlob DESCENDING
Constructor Detail |
---|
protected OrderedBlob(Order order)
Method Detail |
---|
public boolean isSkippable()
DataType
DataType
s that are not skippable can only be used as the
right-most field of a Struct
.
isSkippable
in interface DataType<byte[]>
isSkippable
in class OrderedBytesBase<byte[]>
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 dst
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |