Module org.elasticsearch.server
Interface TransformDecoder
- All Known Subinterfaces:
NumericCodecStage
- All Known Implementing Classes:
DeltaCodecStage,GcdCodecStage,OffsetCodecStage
public interface TransformDecoder
Reverses an in-place transformation as a non-terminal stage of the decode pipeline.
Unlike PayloadDecoder, transform decoders do not read from a
DataInput directly. They read metadata written
by the corresponding TransformEncoder via DecodingContext.metadata().
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(long[] values, int valueCount, DecodingContext context) Reverses the transformation on values in-place using metadata from the context.byteid()Returns the unique stage identifier.
-
Method Details
-
id
byte id()Returns the unique stage identifier.- Returns:
- the stage ID byte
-
decode
Reverses the transformation on values in-place using metadata from the context.- Parameters:
values- the values to reverse-transform in-placevalueCount- the number of valid values in the arraycontext- the decoding context for reading stage metadata- Throws:
IOException- if an I/O error occurs while reading metadata
-