Closes the block file.
Closes and deletes the block file.
Ensures that all data for this BlockFile is stored in persistent storage before
Gets the current length of the BlockFile in blocks. An implementation may allow
the actual disk file
Allocates a ByteBuffer which is filled with the contents of the specified block.
If the buffer is mo
Sets the length of the file in blocks. An implementation may defer changing the
file size until a re
Tries to unmap a file from memory, if the file is memory mapped.
Allocates a ByteBuffer to be used for writing to the specified block. The
contents of the ByteBuffer
Changes the block ID of the specified Block. This method is called copyBlock
because a call to copyB
Releases a block. This is used when a block is no longer needed.
Copies the internal buffer of a block to a new part of the file, and modifies
the block to refer to
Frees a buffer that was allocated by calling either #allocateBlockor #readBlock.
While calling this