Class AsynchronousBufferFileReader
java.lang.Object
org.apache.flink.runtime.io.disk.iomanager.AbstractFileIOChannel
org.apache.flink.runtime.io.disk.iomanager.AsynchronousFileIOChannel<Buffer,org.apache.flink.runtime.io.disk.iomanager.ReadRequest>
org.apache.flink.runtime.io.disk.iomanager.AsynchronousBufferFileReader
- All Implemented Interfaces:
BufferFileReader,FileIOChannel
public class AsynchronousBufferFileReader
extends AsynchronousFileIOChannel<Buffer,org.apache.flink.runtime.io.disk.iomanager.ReadRequest>
implements BufferFileReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.disk.iomanager.FileIOChannel
FileIOChannel.Enumerator, FileIOChannel.ID -
Field Summary
Fields inherited from class org.apache.flink.runtime.io.disk.iomanager.AsynchronousFileIOChannel
closed, closeLock, exception, requestQueue, requestsNotReturned, resultHandlerFields inherited from class org.apache.flink.runtime.io.disk.iomanager.AbstractFileIOChannel
fileChannel, id, LOG -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAsynchronousBufferFileReader(FileIOChannel.ID channelID, RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue, RequestDoneCallback<Buffer> callback) -
Method Summary
Methods inherited from class org.apache.flink.runtime.io.disk.iomanager.AsynchronousFileIOChannel
addRequest, checkErroneous, close, closeAndDelete, handleProcessedBuffer, isClosed, registerAllRequestsProcessedListenerMethods inherited from class org.apache.flink.runtime.io.disk.iomanager.AbstractFileIOChannel
deleteChannel, getChannelID, getNioFileChannel, getSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.disk.iomanager.FileIOChannel
close, closeAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSize, isClosed
-
Constructor Details
-
AsynchronousBufferFileReader
protected AsynchronousBufferFileReader(FileIOChannel.ID channelID, RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue, RequestDoneCallback<Buffer> callback) throws IOException - Throws:
IOException
-
-
Method Details
-
readInto
- Specified by:
readIntoin interfaceBufferFileReader- Throws:
IOException
-
seekToPosition
- Specified by:
seekToPositionin interfaceBufferFileReader- Throws:
IOException
-
hasReachedEndOfFile
public boolean hasReachedEndOfFile()- Specified by:
hasReachedEndOfFilein interfaceBufferFileReader
-