Class HeaderlessChannelWriterOutputView
java.lang.Object
org.apache.flink.runtime.memory.AbstractPagedOutputView
org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
org.apache.flink.table.runtime.io.HeaderlessChannelWriterOutputView
- All Implemented Interfaces:
DataOutput,org.apache.flink.core.memory.DataOutputView,org.apache.flink.core.memory.MemorySegmentWritable
public final class HeaderlessChannelWriterOutputView
extends org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
A
DataOutputView that is backed by a BlockChannelWriter, making it effectively a data output stream. The view writes its data in
blocks to the underlying channel, but does not expect header for each block.-
Field Summary
Fields inherited from class org.apache.flink.runtime.memory.AbstractPagedOutputView
headerLength, segmentSize -
Constructor Summary
ConstructorsConstructorDescriptionHeaderlessChannelWriterOutputView(org.apache.flink.runtime.io.disk.iomanager.BlockChannelWriter<org.apache.flink.core.memory.MemorySegment> writer, List<org.apache.flink.core.memory.MemorySegment> memory, int segmentSize) -
Method Summary
Modifier and TypeMethodDescriptionintclose()Closes this OutputView, closing the underlying writer.intorg.apache.flink.runtime.io.disk.iomanager.FileIOChannellonglongorg.apache.flink.core.memory.MemorySegmentnextSegment(org.apache.flink.core.memory.MemorySegment current, int posInSegment) 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
-
Constructor Details
-
HeaderlessChannelWriterOutputView
public HeaderlessChannelWriterOutputView(org.apache.flink.runtime.io.disk.iomanager.BlockChannelWriter<org.apache.flink.core.memory.MemorySegment> writer, List<org.apache.flink.core.memory.MemorySegment> memory, int segmentSize)
-
-
Method Details
-
getChannel
public org.apache.flink.runtime.io.disk.iomanager.FileIOChannel getChannel()- Specified by:
getChannelin classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
close
Closes this OutputView, closing the underlying writer. And return number bytes in last memory segment.- Specified by:
closein classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView- Throws:
IOException
-
getBlockCount
public int getBlockCount()- Specified by:
getBlockCountin classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
-
getNumBytes
- Specified by:
getNumBytesin classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView- Throws:
IOException
-
getNumCompressedBytes
- Specified by:
getNumCompressedBytesin classorg.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView- Throws:
IOException
-
nextSegment
public org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current, int posInSegment) throws IOException - Specified by:
nextSegmentin classorg.apache.flink.runtime.memory.AbstractPagedOutputView- Throws:
IOException
-