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 BlockPersister
public DataBlockFactory getDataBlockFactory()
public long getTotalMemoryUsage()
getTotalMemoryUsage
in interface MemoryAware
public long getCachedBlocks()
getCachedBlocks
in interface MemoryAware
public int getMaxKeys()
getMaxKeys
in interface BlockPersister
public int getMinKeys()
getMinKeys
in interface BlockPersister
public KeyInfo getKeyInfo()
getKeyInfo
in interface BlockPersister
public IndexBlock loadBlock(long position) throws JasDBStorageException
loadBlock
in interface BlockPersister
JasDBStorageException
public void persistBlock(IndexBlock block) throws JasDBStorageException
persistBlock
in interface BlockPersister
JasDBStorageException
public void flushAndCloseBlock(IndexBlock block) throws JasDBStorageException
JasDBStorageException
public void markDeleted(IndexBlock block) throws JasDBStorageException
markDeleted
in interface BlockPersister
JasDBStorageException
public void flush() throws JasDBStorageException
flush
in interface BlockPersister
JasDBStorageException
public void close() throws JasDBStorageException
close
in interface BlockPersister
JasDBStorageException
public void releaseBlock(IndexBlock block)
releaseBlock
in interface BlockPersister
public IndexBlock createBlock(BlockTypes blockType, long parentBlock) throws JasDBStorageException
createBlock
in interface BlockPersister
JasDBStorageException
public long getBlockSize(BlockTypes blockType)
getBlockSize
in interface BlockPersister
Copyright © 2015. All rights reserved.