public abstract class AbstractChannelWriterOutputView extends AbstractPagedOutputView
DataOutputView that is backed by a FileIOChannel,
making it effectively a data output stream. The view writes it data in blocks to the underlying
channel.headerLength, segmentSize| 构造器和说明 |
|---|
AbstractChannelWriterOutputView(int segmentSize,
int headerLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract int |
close()
Closes this OutputView, closing the underlying writer
|
abstract int |
getBlockCount()
Gets the number of blocks used by this view.
|
abstract FileIOChannel |
getChannel()
Get the underlying channel.
|
abstract long |
getNumBytes()
Get output bytes.
|
abstract long |
getNumCompressedBytes()
Get output compressed bytes, return num bytes if there is no compression.
|
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, nextSegment, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic AbstractChannelWriterOutputView(int segmentSize,
int headerLength)
public abstract FileIOChannel getChannel()
public abstract int close()
throws IOException
IOExceptionpublic abstract int getBlockCount()
public abstract long getNumBytes()
throws IOException
IOExceptionpublic abstract long getNumCompressedBytes()
throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.