public static final class RcFileCompressor.CompressedSliceOutput extends BufferedOutputStreamSliceOutput
| Constructor and Description |
|---|
CompressedSliceOutput(OutputStream compressionStream,
ChunkedSliceOutput bufferedOutput,
Supplier<RcFileCompressor.CompressedSliceOutput> resetFactory,
Runnable onDestroy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RcFileCompressor.CompressedSliceOutput |
createRecycledCompressedSliceOutput() |
void |
destroy() |
int |
getCompressedSize() |
List<io.airlift.slice.Slice> |
getCompressedSlices() |
long |
getRetainedSize() |
appendByte, appendBytes, appendBytes, appendBytes, appendDouble, appendInt, appendLong, appendShort, flush, getUnderlyingSlice, isWritable, reset, reset, size, slice, toString, toString, writableBytes, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeZeropublic CompressedSliceOutput(OutputStream compressionStream, ChunkedSliceOutput bufferedOutput, Supplier<RcFileCompressor.CompressedSliceOutput> resetFactory, Runnable onDestroy)
compressionStream - the compressed output stream to delegate tobufferedOutput - the output for the compressionStreamresetFactory - the function to create a new CompressedSliceOutput that reuses the bufferedOutputonDestroy - used to cleanup the compression when donepublic long getRetainedSize()
getRetainedSize in class BufferedOutputStreamSliceOutputpublic int getCompressedSize()
public List<io.airlift.slice.Slice> getCompressedSlices()
public RcFileCompressor.CompressedSliceOutput createRecycledCompressedSliceOutput()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BufferedOutputStreamSliceOutputIOExceptionpublic void destroy()
throws IOException
IOExceptionCopyright © 2012–2023. All rights reserved.