Class SynchronousBufferFileReader
- java.lang.Object
-
- org.apache.flink.runtime.io.disk.iomanager.AbstractFileIOChannel
-
- org.apache.flink.runtime.io.disk.iomanager.SynchronousFileIOChannel
-
- org.apache.flink.runtime.io.disk.iomanager.SynchronousBufferFileReader
-
- All Implemented Interfaces:
BufferFileReader,FileIOChannel
public class SynchronousBufferFileReader extends SynchronousFileIOChannel implements BufferFileReader
A synchronousBufferFileReaderimplementation.This currently bypasses the I/O manager as it is the only synchronous implementation, which is currently in use.
TODO Refactor I/O manager setup and refactor this into it
-
-
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.AbstractFileIOChannel
fileChannel, id, LOG
-
-
Constructor Summary
Constructors Constructor Description SynchronousBufferFileReader(FileIOChannel.ID channelID, boolean writeEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasReachedEndOfFile()voidreadInto(Buffer buffer)voidseekToPosition(long position)-
Methods inherited from class org.apache.flink.runtime.io.disk.iomanager.SynchronousFileIOChannel
close, isClosed
-
Methods inherited from class org.apache.flink.runtime.io.disk.iomanager.AbstractFileIOChannel
closeAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.io.disk.iomanager.FileIOChannel
close, closeAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSize, isClosed
-
-
-
-
Constructor Detail
-
SynchronousBufferFileReader
public SynchronousBufferFileReader(FileIOChannel.ID channelID, boolean writeEnabled) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readInto
public void readInto(Buffer buffer) throws IOException
- Specified by:
readIntoin interfaceBufferFileReader- Throws:
IOException
-
seekToPosition
public void seekToPosition(long position) throws IOException- Specified by:
seekToPositionin interfaceBufferFileReader- Throws:
IOException
-
hasReachedEndOfFile
public boolean hasReachedEndOfFile()
- Specified by:
hasReachedEndOfFilein interfaceBufferFileReader
-
-