Package db.buffers

# Interface OutputBlockStream

All Superinterfaces:
  `AutoCloseable`, `BlockStream`, `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 Summary

  Modifier and Type
  Method
  Description
  `void`
  `writeBlock(BufferFileBlock block)`
  Write the specified block to the corresponding BufferFile.

  ### Methods inherited from interface db.buffers.BlockStream

  `getBlockCount, getBlockSize`

  ### Methods inherited from interface java.io.Closeable

  `close`

- ## Method Details

  - ### writeBlock

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