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 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.void
decodeFieldComparisonBytes(BinaryReader source, int fieldIndex, boolean skip)
Decodes 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.TokenDecoder
decode, decodeField, setTarget
-
-
-
-
Method Detail
-
isInverted
boolean isInverted()
Indicates whether normal ordering is inverted.- Returns:
true
if ordering is descending,false
otherwise.
-
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
-
-