|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.types.OrderedBytesBase<Float>
org.apache.hadoop.hbase.types.OrderedFloat32
@InterfaceAudience.Public @InterfaceStability.Evolving public class OrderedFloat32
A float of 32-bits using a fixed-length encoding. Based on
OrderedBytes.encodeFloat32(PositionedByteRange, float, Order).
| Field Summary | |
|---|---|
static OrderedFloat32 |
ASCENDING
|
static OrderedFloat32 |
DESCENDING
|
| Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase |
|---|
order |
| Constructor Summary | |
|---|---|
protected |
OrderedFloat32(Order order)
|
| Method Summary | |
|---|---|
Float |
decode(PositionedByteRange src)
Read an instance of T from the buffer src. |
float |
decodeFloat(PositionedByteRange dst)
Read a float value from the buffer dst. |
int |
encode(PositionedByteRange dst,
Float val)
Write instance val into buffer dst. |
Class<Float> |
encodedClass()
Inform consumers over what type this DataType operates. |
int |
encodedLength(Float val)
Inform consumers how long the encoded byte[] will be. |
int |
encodeFloat(PositionedByteRange dst,
float val)
Write instance val into buffer buff. |
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 OrderedFloat32 ASCENDING
public static final OrderedFloat32 DESCENDING
| Constructor Detail |
|---|
protected OrderedFloat32(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<Float>isNullable in class OrderedBytesBase<Float>true when null is supported, false otherwise.public int encodedLength(Float val)
DataTypebyte[] will be.
val - The value to check.
val.apublic Class<Float> encodedClass()
DataTypeDataType operates. Useful
when working with bare DataType instances.
public Float decode(PositionedByteRange src)
DataTypeT from the buffer src.
src - the buffer containing the encoded value.
public int encode(PositionedByteRange dst,
Float val)
DataTypeval into buffer dst.
dst - the buffer containing the encoded value.val - the value to encode onto dst.
public float decodeFloat(PositionedByteRange dst)
float value from the buffer dst.
public int encodeFloat(PositionedByteRange dst,
float val)
val into buffer buff.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||