public interface BlockPersister extends MemoryAware
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IndexBlock |
createBlock(BlockTypes blockType,
long parentBlock) |
void |
flush() |
long |
getBlockSize(BlockTypes blockType) |
KeyInfo |
getKeyInfo() |
LockManager |
getLockManager() |
int |
getMaxKeys() |
int |
getMinKeys() |
IndexBlock |
loadBlock(long position) |
void |
markDeleted(IndexBlock block) |
void |
persistBlock(IndexBlock block) |
void |
releaseBlock(IndexBlock block) |
getCachedBlocks, getTotalMemoryUsageint getMaxKeys()
int getMinKeys()
KeyInfo getKeyInfo()
IndexBlock loadBlock(long position) throws JasDBStorageException
JasDBStorageExceptionvoid persistBlock(IndexBlock block) throws JasDBStorageException
JasDBStorageExceptionvoid markDeleted(IndexBlock block) throws JasDBStorageException
JasDBStorageExceptionvoid flush()
throws JasDBStorageException
JasDBStorageExceptionvoid close()
throws JasDBStorageException
JasDBStorageExceptionvoid releaseBlock(IndexBlock block)
IndexBlock createBlock(BlockTypes blockType, long parentBlock) throws JasDBStorageException
JasDBStorageExceptionlong getBlockSize(BlockTypes blockType)
LockManager getLockManager()
Copyright © 2015. All rights reserved.