|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataBlockManager
DataBlockManager is a source for allocating and reading blocks in the system.
Method Summary | |
---|---|
void |
closeBlock()
Closes the block returned by getNextBlock(int) , which schedules it to be written to
disk and marks the intention that no more data will be added to it. |
DataBlock |
getNextBlock(int recordSize)
Returns the next block from this allocator. |
DataBlock |
readBlock(int blockNum,
int recordSize)
Reads a block directly from the underlying storage (DataSection). |
Methods inherited from interface org.gillius.realdb.model.DataBlockSummaryReader |
---|
readBlockRange |
Method Detail |
---|
DataBlock getNextBlock(int recordSize) throws java.io.IOException, BadFileException
java.io.IOException
BadFileException
void closeBlock() throws java.io.IOException
getNextBlock(int)
, which schedules it to be written to
disk and marks the intention that no more data will be added to it.
java.io.IOException
DataBlock readBlock(int blockNum, int recordSize) throws java.io.IOException, BadFileException
java.io.IOException
- if the block could not be read
BadFileException
- if the block loaded was corrupted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |