public class BtreePlusBlockPersister extends Object implements BlockPersister
| Constructor and Description |
|---|
BtreePlusBlockPersister(DataBlockFactory dataBlockFactory,
int pageSize,
KeyInfo keyInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IndexBlock |
createBlock(BlockTypes blockType,
long parentBlock) |
void |
flush() |
void |
flushAndCloseBlock(IndexBlock block) |
long |
getBlockSize(BlockTypes blockType) |
long |
getCachedBlocks() |
DataBlockFactory |
getDataBlockFactory() |
KeyInfo |
getKeyInfo() |
LockManager |
getLockManager() |
int |
getMaxKeys() |
int |
getMinKeys() |
long |
getTotalMemoryUsage() |
IndexBlock |
loadBlock(long position) |
void |
markDeleted(IndexBlock block) |
void |
persistBlock(IndexBlock block) |
void |
releaseBlock(IndexBlock block) |
public BtreePlusBlockPersister(DataBlockFactory dataBlockFactory, int pageSize, KeyInfo keyInfo)
public LockManager getLockManager()
getLockManager in interface BlockPersisterpublic DataBlockFactory getDataBlockFactory()
public long getTotalMemoryUsage()
getTotalMemoryUsage in interface MemoryAwarepublic long getCachedBlocks()
getCachedBlocks in interface MemoryAwarepublic int getMaxKeys()
getMaxKeys in interface BlockPersisterpublic int getMinKeys()
getMinKeys in interface BlockPersisterpublic KeyInfo getKeyInfo()
getKeyInfo in interface BlockPersisterpublic IndexBlock loadBlock(long position) throws JasDBStorageException
loadBlock in interface BlockPersisterJasDBStorageExceptionpublic void persistBlock(IndexBlock block) throws JasDBStorageException
persistBlock in interface BlockPersisterJasDBStorageExceptionpublic void flushAndCloseBlock(IndexBlock block) throws JasDBStorageException
JasDBStorageExceptionpublic void markDeleted(IndexBlock block) throws JasDBStorageException
markDeleted in interface BlockPersisterJasDBStorageExceptionpublic void flush()
throws JasDBStorageException
flush in interface BlockPersisterJasDBStorageExceptionpublic void close()
throws JasDBStorageException
close in interface BlockPersisterJasDBStorageExceptionpublic void releaseBlock(IndexBlock block)
releaseBlock in interface BlockPersisterpublic IndexBlock createBlock(BlockTypes blockType, long parentBlock) throws JasDBStorageException
createBlock in interface BlockPersisterJasDBStorageExceptionpublic long getBlockSize(BlockTypes blockType)
getBlockSize in interface BlockPersisterCopyright © 2015. All rights reserved.