public class RandomAccessInputView extends AbstractPagedInputView implements org.apache.flink.core.memory.SeekableDataInputView
headerLength| Constructor and Description |
|---|
RandomAccessInputView(ArrayList<org.apache.flink.core.memory.MemorySegment> segments,
int segmentSize) |
RandomAccessInputView(ArrayList<org.apache.flink.core.memory.MemorySegment> segments,
int segmentSize,
int limitInLastSegment) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment)
Gets the limit for reading bytes from the given memory segment.
|
long |
getReadPosition() |
protected org.apache.flink.core.memory.MemorySegment |
nextSegment(org.apache.flink.core.memory.MemorySegment current)
The method by which concrete subclasses realize page crossing.
|
void |
setReadPosition(long position) |
advance, clear, doAdvance, getCurrentPositionInSegment, getCurrentSegment, getCurrentSegmentLimit, getHeaderLength, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seekInput, skipBytes, skipBytesToReadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, read, skipBytesToReadreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytespublic RandomAccessInputView(ArrayList<org.apache.flink.core.memory.MemorySegment> segments, int segmentSize)
public RandomAccessInputView(ArrayList<org.apache.flink.core.memory.MemorySegment> segments, int segmentSize, int limitInLastSegment)
public void setReadPosition(long position)
setReadPosition in interface org.apache.flink.core.memory.SeekableDataInputViewpublic long getReadPosition()
protected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current)
throws EOFException
AbstractPagedInputViewEOFException.nextSegment in class AbstractPagedInputViewcurrent - The current page that was read to its limit. May be null, if this method is
invoked for the first time.null. If the input is
exhausted, an EOFException must be thrown instead.EOFException - Thrown, if no further segment is available.protected int getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment)
AbstractPagedInputViewgetLimitForSegment in class AbstractPagedInputViewsegment - The segment to determine the limit for.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.