Combined number index format, suitable for ordering double and int64 values together.
Implementation conforms to the UTF Style Encoding section of "Number Index Entry Encoding".
| class | NumberIndexEncoder.DecodedNumberParts | The results of decoding NumberParts from a byte array. |
|
| static NumberIndexEncoder.DecodedNumberParts |
decode(byte[] bytes)
|
| static double |
decodeDouble(byte[] bytes)
|
| static long |
decodeLong(byte[] bytes)
|
| static byte[] | |
| static byte[] |
encodeDouble(double value)
|
| static byte[] |
encodeLong(long value)
|
| bytes |
|---|
| bytes |
|---|
Encodes a finite number to bytes suitable for inclusion in an index. The number is specified as a set of components similar in spirit to the encoding of a double-precision number.
| parts | the number to encode |
|---|
| value |
|---|
| value |
|---|