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