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