Module org.elasticsearch.server
Interface PayloadDecoder
- All Known Subinterfaces:
PayloadCodecStage
- All Known Implementing Classes:
BitPackCodecStage
public interface PayloadDecoder
Deserializes bytes back to values as the terminal stage of the decode pipeline.
Unlike TransformDecoder, payload stages read directly from a
DataInput rather than reading metadata from the context.
-
Method Summary
Modifier and TypeMethodDescriptionintdecode(long[] values, org.apache.lucene.store.DataInput in, DecodingContext context) Deserializes bytes from the input stream back to values.byteid()Returns the unique stage identifier.
-
Method Details
-
id
byte id()Returns the unique stage identifier.- Returns:
- the stage ID byte
-
decode
int decode(long[] values, org.apache.lucene.store.DataInput in, DecodingContext context) throws IOException Deserializes bytes from the input stream back to values.- Parameters:
values- the output array to populatein- the data input streamcontext- the decoding context with block metadata- Returns:
- the number of values decoded
- Throws:
IOException- if an I/O error occurs
-