Module datarush.library
Interface ComparableTokenDecoder
-
- All Superinterfaces:
TokenDecoder
public interface ComparableTokenDecoder extends TokenDecoder
A decoder for byte-wise comparable binary encodings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecodeFieldAdditionalBytes(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.booleanisInverted()Indicates whether normal ordering is inverted.-
Methods inherited from interface com.pervasive.datarush.encoding.TokenDecoder
decode, decodeField, setTarget
-
-
-
-
Method Detail
-
isInverted
boolean isInverted()
Indicates whether normal ordering is inverted.- Returns:
trueif ordering is descending,falseotherwise.
-
decodeFieldComparisonBytes
void decodeFieldComparisonBytes(BinaryReader source, int fieldIndex, boolean skip)
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
void decodeFieldAdditionalBytes(BinaryReader source, int fieldIndex, boolean skip)
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
-
-