Class CompressedQueryDataEncoder
java.lang.Object
io.trino.server.protocol.spooling.encoding.CompressedQueryDataEncoder
- All Implemented Interfaces:
QueryDataEncoder
- Direct Known Subclasses:
Lz4QueryDataEncoder,ZstdQueryDataEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.server.protocol.spooling.QueryDataEncoder
QueryDataEncoder.EncoderSelector, QueryDataEncoder.Factory -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompressedQueryDataEncoder(QueryDataEncoder delegate, int compressionThreshold) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intcompress(byte[] buffer, int uncompressedSize, OutputStream output) encodeTo(OutputStream output, List<Page> pages) protected static intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.server.protocol.spooling.QueryDataEncoder
attributes, encoding
-
Field Details
-
delegate
-
-
Constructor Details
-
CompressedQueryDataEncoder
-
-
Method Details
-
encodeTo
- Specified by:
encodeToin interfaceQueryDataEncoder- Throws:
IOException
-
compress
protected abstract int compress(byte[] buffer, int uncompressedSize, OutputStream output) throws IOException - Throws:
IOException
-
pagesSize
-