Class MemoryCompressedSliceOutput
java.lang.Object
java.io.OutputStream
io.airlift.slice.SliceOutput
io.trino.hive.formats.compression.BufferedOutputStreamSliceOutput
io.trino.hive.formats.compression.MemoryCompressedSliceOutput
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static MemoryCompressedSliceOutputcreateUncompressedMemorySliceOutput(int minChunkSize, int maxChunkSize) voiddestroy()intList<io.airlift.slice.Slice>longMethods inherited from class io.trino.hive.formats.compression.BufferedOutputStreamSliceOutput
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, writeZeroMethods inherited from class io.airlift.slice.SliceOutput
write, write, write, writeBoolean, writeBytes, writeChar, writeChars, writeUTFMethods inherited from class java.io.OutputStream
nullOutputStream
-
Method Details
-
getRetainedSize
public long getRetainedSize()- Overrides:
getRetainedSizein classBufferedOutputStreamSliceOutput
-
getCompressedSize
public int getCompressedSize() -
getCompressedSlices
-
createRecycledCompressedSliceOutput
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classBufferedOutputStreamSliceOutput- Throws:
IOException
-
destroy
- Throws:
IOException
-
createUncompressedMemorySliceOutput
public static MemoryCompressedSliceOutput createUncompressedMemorySliceOutput(int minChunkSize, int maxChunkSize) throws IOException - Throws:
IOException
-