Class BufferFileChannelReader

java.lang.Object
org.apache.flink.runtime.io.disk.iomanager.BufferFileChannelReader

public class BufferFileChannelReader extends Object
Helper class to read Buffers from files into objects.
  • Method Details

    • readBufferFromFileChannel

      public boolean readBufferFromFileChannel(Buffer buffer) throws IOException
      Reads data from the object's file channel into the given buffer.
      Parameters:
      buffer - the buffer to read into
      Returns:
      whether the end of the file has been reached (true) or not (false)
      Throws:
      IOException