java.lang.Object
com.pervasive.datarush.encoding.binary.AbstractTokenDecoder
com.pervasive.datarush.encoding.binary.SparseRecordDecoder
- All Implemented Interfaces:
TokenDecoder
The matching decoder for
SparseRecordEncoder.-
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(BinaryReader source, boolean skip) Decodes the encoding at the current position of the reader and stores the value in the current target.protected voiddoTargetUpdated(TokenSettable target) Sets the target buffer for decoding.Methods inherited from class com.pervasive.datarush.encoding.binary.AbstractTokenDecoder
decodeField, getTarget, setTarget
-
Method Details
-
doTargetUpdated
Description copied from class:AbstractTokenDecoderSets the target buffer for decoding. Invoked when the target is initially set or updated.- Specified by:
doTargetUpdatedin classAbstractTokenDecoder- Parameters:
target- the buffer into which decoded valued are written
-
decode
Description copied from interface:TokenDecoderDecodes the encoding at the current position of the reader and stores the value in the current target. The reader is advanced past the encoding as a result.- Parameters:
source- the reader containing the encodingskip- a value of true means decode the bytes but don't set on target
-