public final class HeaderlessChannelWriterOutputView
extends org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
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.| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
int |
close()
Closes this OutputView, closing the underlying writer.
|
int |
getBlockCount() |
org.apache.flink.runtime.io.disk.iomanager.FileIOChannel |
getChannel() |
long |
getNumBytes() |
long |
getNumCompressedBytes() |
org.apache.flink.core.memory.MemorySegment |
nextSegment(org.apache.flink.core.memory.MemorySegment current,
int posInSegment) |
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic 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)
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.AbstractChannelWriterOutputViewIOExceptionpublic int getBlockCount()
getBlockCount in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewpublic long getNumBytes()
throws IOException
getNumBytes in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewIOExceptionpublic long getNumCompressedBytes()
throws IOException
getNumCompressedBytes in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputViewIOExceptionpublic org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current,
int posInSegment)
throws IOException
nextSegment in class org.apache.flink.runtime.memory.AbstractPagedOutputViewIOExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.