|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.types.OrderedBytesBase<Integer>
org.apache.hadoop.hbase.types.OrderedInt32
@InterfaceAudience.Public @InterfaceStability.Evolving public class OrderedInt32
An int of 32-bits using a fixed-length encoding. Built on
OrderedBytes.encodeInt32(PositionedByteRange, int, Order).
| Field Summary | |
|---|---|
static OrderedInt32 |
ASCENDING
|
static OrderedInt32 |
DESCENDING
|
| Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
|---|
order |
| Constructor Summary | |
|---|---|
protected |
OrderedInt32(Order order)
|
| Method Summary | |
|---|---|
Integer |
decode(PositionedByteRange src)
Read an instance of T from the buffer src. |
int |
decodeInt(PositionedByteRange src)
Read an int value from the buffer src. |
int |
encode(PositionedByteRange dst,
Integer val)
Write instance val into buffer dst. |
Class<Integer> |
encodedClass()
Inform consumers over what type this DataType operates. |
int |
encodedLength(Integer val)
Inform consumers how long the encoded byte[] will be. |
int |
encodeInt(PositionedByteRange dst,
int val)
Write instance val into buffer dst. |
boolean |
isNullable()
Indicates whether this instance supports encoding null values. |
| Methods inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
|---|
getOrder, 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 OrderedInt32 ASCENDING
public static final OrderedInt32 DESCENDING
| Constructor Detail |
|---|
protected OrderedInt32(Order order)
| Method Detail |
|---|
public boolean isNullable()
DataTypeDataTypes that support null should treat null as comparing
less than any non-null value for default sort ordering purposes.
isNullable in interface DataType<Integer>isNullable in class OrderedBytesBase<Integer>true when null is supported, false otherwise.public int encodedLength(Integer val)
DataTypebyte[] will be.
val - The value to check.
val.apublic Class<Integer> encodedClass()
DataTypeDataType operates. Useful
when working with bare DataType instances.
public Integer decode(PositionedByteRange src)
DataTypeT from the buffer src.
src - the buffer containing the encoded value.
public int encode(PositionedByteRange dst,
Integer val)
DataTypeval into buffer dst.
dst - the buffer containing the encoded value.val - the value to encode onto dst.
public int decodeInt(PositionedByteRange src)
int value from the buffer src.
public int encodeInt(PositionedByteRange dst,
int val)
val into buffer dst.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||