Interface Read


  • public interface Read
    Provides a read interface into the underlying storage layer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void readInto​(java.nio.ByteBuffer buffer, long position)
      Read from the underlying store(file) into the buffer starting at the given position in the store.
    • Method Detail

      • readInto

        void readInto​(java.nio.ByteBuffer buffer,
                      long position)
               throws java.io.IOException
        Read from the underlying store(file) into the buffer starting at the given position in the store. Reads exactly buffer.remaining() amount of data or throws an exception.
        Parameters:
        buffer - The buffer into which the read needs to write to
        position - The position to start the read from
        Throws:
        java.io.IOException