Package db.buffers

Interface OutputBlockStream

  • All Superinterfaces:
    java.lang.AutoCloseable, BlockStream, java.io.Closeable

    public interface OutputBlockStream
    extends BlockStream
    OutputBlockStream provides a BufferFile output block stream. The nature of the stream and the block sequence is determined by the particular instance.
    • Method Detail

      • writeBlock

        void writeBlock​(BufferFileBlock block)
                 throws java.io.IOException
        Write the specified block to the corresponding BufferFile.
        Parameters:
        block - a BufferFile block which corresponds to a specific block index
        Throws:
        java.io.IOException - if an unexpected error occurs while writing the block