Class JsonQueryDataDecoder
java.lang.Object
io.trino.client.spooling.encoding.JsonQueryDataDecoder
- All Implemented Interfaces:
QueryDataDecoder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptiondecode(InputStream stream, DataAttributes queryAttributes) Decodes the input stream into a lazy ResultRows.encoding()
-
Method Details
-
decode
public CloseableIterator<List<Object>> decode(InputStream stream, DataAttributes queryAttributes) throws IOException Description copied from interface:QueryDataDecoderDecodes the input stream into a lazy ResultRows.Decoder is responsible for closing input stream when all values are decoded or exception was thrown.
- Specified by:
decodein interfaceQueryDataDecoder- Parameters:
stream- Input stream to decode (in memory or over the network)queryAttributes- Attributes of the segment- Throws:
IOException- if an I/O error occurs
-
encoding
- Specified by:
encodingin interfaceQueryDataDecoder
-