Package dev.vortex.io

Interface PooledReadable.PositionalStream

All Superinterfaces:
AutoCloseable, Closeable
Enclosing class:
PooledReadable

public static interface PooledReadable.PositionalStream extends Closeable
One handle on the source, used by at most one read at a time.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    readFully(long position, ByteBuffer buffer, PooledReadable.ScratchBytes scratch)
    Fills buffer completely from absolute position, in as few requests to storage as possible: Vortex has already coalesced neighbouring reads into this one.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • readFully

      void readFully(long position, ByteBuffer buffer, PooledReadable.ScratchBytes scratch) throws IOException
      Fills buffer completely from absolute position, in as few requests to storage as possible: Vortex has already coalesced neighbouring reads into this one.

      Implementations limited to byte[] APIs should stage through scratch rather than allocate.

      Throws:
      IOException