public class RandomAccessOutputView extends AbstractPagedOutputView
AbstractPagedOutputView with memory segments.currentSegment, segmentSize| Constructor and Description |
|---|
RandomAccessOutputView(MemorySegment[] segments,
int segmentSize) |
| Modifier and Type | Method and Description |
|---|---|
protected MemorySegment |
nextSegment(MemorySegment current,
int positionInCurrent)
This method must return a segment.
|
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic RandomAccessOutputView(MemorySegment[] segments, int segmentSize)
protected MemorySegment nextSegment(MemorySegment current, int positionInCurrent) throws EOFException
AbstractPagedOutputViewEOFException.nextSegment in class AbstractPagedOutputViewcurrent - The current memory segmentpositionInCurrent - The position in the segment, one after the last valid byte.EOFExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.