Class ZeebeDbConstants

java.lang.Object
io.camunda.zeebe.db.impl.ZeebeDbConstants

public final class ZeebeDbConstants extends Object
  • Field Details

    • ZB_DB_BYTE_ORDER

      public static final ByteOrder 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_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 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_ENDIAN for the ascending ordering.

  • Constructor Details

    • ZeebeDbConstants

      public ZeebeDbConstants()