Class CompressedQueryDataDecoder
java.lang.Object
io.trino.client.spooling.encoding.CompressedQueryDataDecoder
- All Implemented Interfaces:
QueryDataDecoder
- Direct Known Subclasses:
Lz4QueryDataDecoder,ZstdQueryDataDecoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.client.QueryDataDecoder
QueryDataDecoder.Factory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(InputStream stream, DataAttributes metadata) Decodes the input stream into a lazy ResultRows.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.client.QueryDataDecoder
encoding
-
Field Details
-
delegate
-
-
Constructor Details
-
CompressedQueryDataDecoder
-
-
Method Details
-
decode
public CloseableIterator<List<Object>> decode(InputStream stream, DataAttributes metadata) 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)metadata- Attributes of the segment- Throws:
IOException- if an I/O error occurs
-