public class RandomAccessOutputView extends AbstractPagedOutputView implements SeekableDataOutputView
headerLength, segmentSize
Constructor and Description |
---|
RandomAccessOutputView(MemorySegment[] segments,
int segmentSize) |
RandomAccessOutputView(MemorySegment[] segments,
int segmentSize,
int segmentSizeBits) |
Modifier and Type | Method and Description |
---|---|
protected MemorySegment |
nextSegment(MemorySegment current,
int positionInCurrent)
This method must return a segment.
|
void |
setWritePosition(long position)
Sets the write pointer to the given position.
|
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skipBytesToWrite, write
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public RandomAccessOutputView(MemorySegment[] segments, int segmentSize)
public RandomAccessOutputView(MemorySegment[] segments, int segmentSize, int segmentSizeBits)
protected MemorySegment nextSegment(MemorySegment current, int positionInCurrent) throws EOFException
AbstractPagedOutputView
EOFException
.nextSegment
in class AbstractPagedOutputView
current
- The current memory segmentpositionInCurrent
- The position in the segment, one after the last valid byte.EOFException
public void setWritePosition(long position)
SeekableDataOutputView
setWritePosition
in interface SeekableDataOutputView
position
- The new write position.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.