public class AsynchronousBufferFileReader extends AsynchronousFileIOChannel<Buffer,org.apache.flink.runtime.io.disk.iomanager.ReadRequest> implements BufferFileReader
FileIOChannel.Enumerator, FileIOChannel.IDclosed, closeLock, exception, requestQueue, requestsNotReturned, resultHandlerfileChannel, id, LOG| Modifier | Constructor and Description |
|---|---|
protected |
AsynchronousBufferFileReader(FileIOChannel.ID channelID,
RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue,
RequestDoneCallback<Buffer> callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasReachedEndOfFile() |
void |
readInto(Buffer buffer) |
void |
seekToPosition(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 AsynchronousBufferFileReader(FileIOChannel.ID channelID, RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue, RequestDoneCallback<Buffer> callback) throws IOException
IOExceptionpublic void readInto(Buffer buffer) throws IOException
readInto in interface BufferFileReaderIOExceptionpublic void seekToPosition(long position)
throws IOException
seekToPosition in interface BufferFileReaderIOExceptionpublic boolean hasReachedEndOfFile()
hasReachedEndOfFile in interface BufferFileReaderCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.