public final class CompressedHeaderlessChannelWriterOutputView
extends org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
implements org.apache.flink.runtime.io.network.buffer.BufferRecycler
DataOutputView that is backed by a FileIOChannel,
making it effectively a data output stream. The view will compress its data before writing it in
blocks to the underlying channel.| Constructor and Description |
|---|
CompressedHeaderlessChannelWriterOutputView(org.apache.flink.runtime.io.disk.iomanager.BufferFileWriter writer,
org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize) |
| Modifier and Type | Method and 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) |
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic CompressedHeaderlessChannelWriterOutputView(org.apache.flink.runtime.io.disk.iomanager.BufferFileWriter writer,
org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize)
public org.apache.flink.runtime.io.disk.iomanager.FileIOChannel getChannel()
getChannel in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewpublic int close()
throws IOException
close in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewIOExceptionprotected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current,
int positionInCurrent)
throws IOException
nextSegment in class org.apache.flink.runtime.memory.AbstractPagedOutputViewIOExceptionpublic long getNumBytes()
getNumBytes in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewpublic long getNumCompressedBytes()
getNumCompressedBytes in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewpublic int getBlockCount()
getBlockCount in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewpublic void recycle(org.apache.flink.core.memory.MemorySegment memorySegment)
recycle in interface org.apache.flink.runtime.io.network.buffer.BufferRecyclerCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.