Package io.camunda.zeebe.db.impl
Class ZeebeDbConstants
java.lang.Object
io.camunda.zeebe.db.impl.ZeebeDbConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteOrderThe byte order is used to write primitive data types into rocks db key or value buffers. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ZB_DB_BYTE_ORDER
The byte order is used to write primitive data types into rocks db key or value buffers.Be aware that
ByteOrder.LITTLE_ENDIANwill 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 0001 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_ENDIANfor the ascending ordering.
-
-
Constructor Details
-
ZeebeDbConstants
public ZeebeDbConstants()
-