Module datarush.library
Interface ComparableTokenDecoder
- All Superinterfaces:
TokenDecoder
A decoder for byte-wise comparable binary encodings.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeFieldAdditionalBytes(BinaryReader source, int fieldIndex, boolean skip) Decodes the additional bytes ( those that are required for storage but not for comparison) to the buffer.voiddecodeFieldComparisonBytes(BinaryReader source, int fieldIndex, boolean skip) Decodes those bytes that are needed for byte-wise comparison.booleanIndicates whether normal ordering is inverted.Methods inherited from interface com.pervasive.datarush.encoding.TokenDecoder
decode, decodeField, setTarget
-
Method Details
-
isInverted
boolean isInverted()Indicates whether normal ordering is inverted.- Returns:
trueif ordering is descending,falseotherwise.
-
decodeFieldComparisonBytes
Decodes those bytes that are needed for byte-wise comparison.- Parameters:
source- the reader containing the encodingfieldIndex- the index of the field being decodedskip- a value of true means decode the bytes but don't set on target
-
decodeFieldAdditionalBytes
Decodes the additional bytes ( those that are required for storage but not for comparison) to the buffer.- Parameters:
source- the reader containing the encodingfieldIndex- the index of the field being decodedskip- a value of true means decode the bytes but don't set on target
-