public class ZeebeStateConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static ByteOrder |
STATE_BYTE_ORDER
The byte order is used to write primitive data types into rocks db key or value buffers.
|
| Constructor and Description |
|---|
ZeebeStateConstants() |
public static final ByteOrder STATE_BYTE_ORDER
Be aware that ByteOrder.LITTLE_ENDIAN will reverse the ordering. If the keys start
with an long, like an timestamp, and the implementation depends on the correct ordering, then
this could be a problem.
Example: Say we have `1` and `256` as keys (type short), in little endian this means 1 = 0000 00001 0000 0000 and 256 = 0000 0000 0000 0001. This means that 256 will be sorted before 1 in Rocks DB, because the first byte is smaller.
We use ByteOrder.BIG_ENDIAN for the ascending ordering.
Copyright © 2017–2018 camunda services GmbH. All rights reserved.