public class AsynchronousBufferFileSegmentReader extends AsynchronousFileIOChannel<FileSegment,org.apache.flink.runtime.io.disk.iomanager.ReadRequest> implements BufferFileSegmentReader
FileIOChannel.Enumerator, FileIOChannel.IDclosed, closeLock, exception, requestQueue, requestsNotReturned, resultHandlerfileChannel, id, LOG| Modifier | Constructor and Description |
|---|---|
protected |
AsynchronousBufferFileSegmentReader(FileIOChannel.ID channelID,
RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue,
RequestDoneCallback<FileSegment> callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasReachedEndOfFile() |
void |
read() |
void |
seekTo(long position) |
addRequest, checkErroneous, close, closeAndDelete, handleProcessedBuffer, isClosed, registerAllRequestsProcessedListenerdeleteChannel, getChannelID, getNioFileChannel, getSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, closeAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSize, isClosedprotected AsynchronousBufferFileSegmentReader(FileIOChannel.ID channelID, RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue, RequestDoneCallback<FileSegment> callback) throws IOException
IOExceptionpublic void read()
throws IOException
read in interface BufferFileSegmentReaderIOExceptionpublic void seekTo(long position)
throws IOException
seekTo in interface BufferFileSegmentReaderIOExceptionpublic boolean hasReachedEndOfFile()
hasReachedEndOfFile in interface BufferFileSegmentReaderCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.