Module datarush.library
Interface ComparableTokenEncoder
- All Superinterfaces:
TokenEncoder
Converts token values into a byte-wise comparable binary encoding.
-
Method Summary
Modifier and TypeMethodDescriptionvoidencodeFieldAdditionalBytes(BinaryBuilder buffer, int index) Appends the additional bytes ( those that are required for storage but not for comparison) to the buffer.voidencodeFieldComparisonBytes(BinaryBuilder buffer, int index) Appends those bytes that are needed for byte-wise comparison.booleanIndicates whether normal ordering is inverted.Methods inherited from interface com.pervasive.datarush.encoding.TokenEncoder
encode, encodeField, setSource
-
Method Details
-
isInverted
boolean isInverted()Indicates whether normal ordering is inverted.- Returns:
trueif ordering is descending,falseotherwise.
-
encodeFieldComparisonBytes
Appends those bytes that are needed for byte-wise comparison.- Parameters:
buffer- the buffer to which to append the encodingindex- the index of the field to encode
-
encodeFieldAdditionalBytes
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 encodingindex- the index of the field to encode
-