Interface ComparableTokenEncoder

  • All Superinterfaces:
    TokenEncoder

    public interface ComparableTokenEncoder
    extends TokenEncoder
    Converts token values into a byte-wise comparable binary encoding.
    • Method Detail

      • isInverted

        boolean isInverted()
        Indicates whether normal ordering is inverted.
        Returns:
        true if ordering is descending, false otherwise.
      • encodeFieldComparisonBytes

        void encodeFieldComparisonBytes​(BinaryBuilder buffer,
                                        int index)
        Appends those bytes that are needed for byte-wise comparison.
        Parameters:
        buffer - the buffer to which to append the encoding
        index - the index of the field to encode
      • encodeFieldAdditionalBytes

        void encodeFieldAdditionalBytes​(BinaryBuilder buffer,
                                        int index)
        Appends the additional bytes ( those that are required for storage but not for comparison) to the buffer.
        Parameters:
        buffer - the buffer to which to append the encoding
        index - the index of the field to encode