- java.lang.Object
-
- com.pervasive.datarush.encoding.binary.AbstractTokenDecoder
-
- com.pervasive.datarush.encoding.binary.SparseRecordDecoder
-
- All Implemented Interfaces:
TokenDecoder
public final class SparseRecordDecoder extends AbstractTokenDecoder
The matching decoder forSparseRecordEncoder
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(BinaryReader source, boolean skip)
Decodes the encoding at the current position of the reader and stores the value in the current target.protected void
doTargetUpdated(TokenSettable target)
Sets the target buffer for decoding.-
Methods inherited from class com.pervasive.datarush.encoding.binary.AbstractTokenDecoder
decodeField, getTarget, setTarget
-
-
-
-
Method Detail
-
doTargetUpdated
protected void doTargetUpdated(TokenSettable target)
Description copied from class:AbstractTokenDecoder
Sets the target buffer for decoding. Invoked when the target is initially set or updated.- Specified by:
doTargetUpdated
in classAbstractTokenDecoder
- Parameters:
target
- the buffer into which decoded valued are written
-
decode
public void decode(BinaryReader source, boolean skip)
Description copied from interface:TokenDecoder
Decodes 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
-
-