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
Constructor and Description |
---|
AbstractChannelWriterOutputView(int segmentSize,
int headerLength) |
Modifier and Type | Method and Description |
---|---|
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, writeUTF
public AbstractChannelWriterOutputView(int segmentSize, int headerLength)
public abstract FileIOChannel getChannel()
public abstract int close() throws IOException
IOException
public abstract int getBlockCount()
public abstract long getNumBytes() throws IOException
IOException
public abstract long getNumCompressedBytes() throws IOException
IOException
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.