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