Class CompressedHeaderlessChannelWriterOutputView
- java.lang.Object
-
- org.apache.flink.runtime.memory.AbstractPagedOutputView
-
- org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
- org.apache.flink.table.runtime.io.CompressedHeaderlessChannelWriterOutputView
-
- All Implemented Interfaces:
DataOutput
,org.apache.flink.core.memory.DataOutputView
,org.apache.flink.core.memory.MemorySegmentWritable
,org.apache.flink.runtime.io.network.buffer.BufferRecycler
public final class CompressedHeaderlessChannelWriterOutputView extends org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView implements org.apache.flink.runtime.io.network.buffer.BufferRecycler
ADataOutputView
that is backed by aFileIOChannel
, making it effectively a data output stream. The view will compress its data before writing it in blocks to the underlying channel.
-
-
Constructor Summary
Constructors Constructor Description CompressedHeaderlessChannelWriterOutputView(org.apache.flink.runtime.io.disk.iomanager.BufferFileWriter writer, org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory, int compressionBlockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
close()
int
getBlockCount()
org.apache.flink.runtime.io.disk.iomanager.FileIOChannel
getChannel()
long
getNumBytes()
long
getNumCompressedBytes()
protected org.apache.flink.core.memory.MemorySegment
nextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent)
void
recycle(org.apache.flink.core.memory.MemorySegment memorySegment)
-
Methods inherited from class org.apache.flink.runtime.memory.AbstractPagedOutputView
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Method Detail
-
getChannel
public org.apache.flink.runtime.io.disk.iomanager.FileIOChannel getChannel()
- Specified by:
getChannel
in classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
close
public int close() throws IOException
- Specified by:
close
in classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
- Throws:
IOException
-
nextSegment
protected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent) throws IOException
- Specified by:
nextSegment
in classorg.apache.flink.runtime.memory.AbstractPagedOutputView
- Throws:
IOException
-
getNumBytes
public long getNumBytes()
- Specified by:
getNumBytes
in classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
getNumCompressedBytes
public long getNumCompressedBytes()
- Specified by:
getNumCompressedBytes
in classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
getBlockCount
public int getBlockCount()
- Specified by:
getBlockCount
in classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
recycle
public void recycle(org.apache.flink.core.memory.MemorySegment memorySegment)
- Specified by:
recycle
in interfaceorg.apache.flink.runtime.io.network.buffer.BufferRecycler
-
-