@InterfaceAudience.Public public class OrderedFloat64 extends OrderedBytesBase<Double>
double of 64-bits using a fixed-length encoding. Built on
OrderedBytes.encodeFloat64(PositionedByteRange, double, Order).| Modifier and Type | Field and Description |
|---|---|
static OrderedFloat64 |
ASCENDING
Deprecated.
since 3.0.0 and will be removed in 4.0.0
|
static OrderedFloat64 |
DESCENDING
Deprecated.
since 3.0.0 and will be removed in 4.0.0
|
order| Constructor and Description |
|---|
OrderedFloat64(Order order)
Creates a new 64-bite
double with a fixed-length encoding. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getOrder, isOrderPreserving, isSkippable, skip@Deprecated public static final OrderedFloat64 ASCENDING
@Deprecated public static final OrderedFloat64 DESCENDING
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<Double>isNullable in class OrderedBytesBase<Double>true when null is supported, false otherwise.public int encodedLength(Double val)
DataTypebyte[] will be.val - The value to check.val.apublic Class<Double> encodedClass()
DataTypeDataType operates. Useful when working with bare
DataType instances.public Double decode(PositionedByteRange src)
DataTypeT from the buffer src.src - the buffer containing the encoded value.public int encode(PositionedByteRange dst, Double val)
DataTypeval 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.src - the PositionedByteRange to read the double fromdouble floating-point value with the same bit patternpublic int encodeDouble(PositionedByteRange dst, double val)
val into buffer dst.dst - the PositionedByteRange to write toval - the value to write to dstCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.