@NotStorableClass public class BtreePlusElementMgr extends Object implements IHeapRecordFactory
| Constructor and Description |
|---|
BtreePlusElementMgr(IHeapElementManager heapElementManager) |
public BtreePlusElementMgr(IHeapElementManager heapElementManager) throws HeapException
HeapExceptionpublic void setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager) throws HeapException
HeapExceptionpublic void startService()
throws HeapException
HeapExceptionpublic void stopService()
throws HeapException
HeapExceptionpublic void openTransaction()
throws HeapException
HeapExceptionpublic void closeTransaction()
throws HeapException
HeapExceptionpublic boolean isTransactionOpened()
public void closeTransactionDiscardChange()
throws HeapException
HeapExceptionpublic void clear()
throws HeapException
HeapExceptionpublic void removeFiles()
throws HeapException
HeapExceptionpublic IFileStorable createHeapRecord(IHeapElementManager heapElementManager, long positionInFile) throws HeapException
IHeapRecordFactorycreateHeapRecord in interface IHeapRecordFactoryHeapExceptionpublic boolean isDataLost()
public IFileForStorable getFileForStorable()
public long heapSize()
throws HeapException
HeapExceptionpublic long freeSize()
throws HeapException
HeapExceptionpublic long usedSize()
throws HeapException
HeapExceptionpublic String backup(long identifier, int maxBackup) throws HeapException
HeapExceptionpublic long getNextFreeDataRecordIdentifier()
public void setNextFreeDataRecordIdentifier(long value)
throws HeapException
HeapExceptionpublic long getNewDataRecordIdentifier()
throws HeapException
HeapExceptionpublic IPageRecordable getRoot() throws HeapException
HeapExceptionpublic IPageRecordable getPage(long position, IPageRecordable parentPage, int index) throws HeapException
HeapExceptionpublic byte[] getData(long dataBlockPosition)
throws HeapException
dataBlockPosition - HeapExceptionpublic IDataBlock getDataBlock(long dataBlockPosition) throws HeapException
dataBlockPosition - HeapExceptionpublic void newRootLeafPage(DataRecordIdentifier dataRecordIdentifier, IDataBlock dataBlock) throws HeapException
HeapExceptionpublic void newRootNonTerminalPage(LeafPage leftLeafPage, LeafPage rightLeafPage) throws HeapException
HeapExceptionpublic void newRootNonTerminalPage(INonTerminalPage leftNonTerminalPage, DataRecordIdentifier middleKey, INonTerminalPage rightNonTerminalPage) throws HeapException
HeapExceptionpublic IDataBlock createDataBlock(byte[] data) throws HeapException
HeapExceptionpublic void removeRoot()
throws HeapException
HeapExceptionpublic void remove(IDataBlock dataBlock) throws HeapException
HeapExceptionpublic void appendPageRecordable(IPageRecordable pageRecordable) throws HeapException
HeapExceptionpublic void freePage(IPageRecord pageRecord) throws HeapException
HeapException@Fortest public long getLastRecordPositionInFile() throws HeapException
HeapExceptionpublic void incrementNumberOfDataRecord()
throws HeapException
HeapExceptionpublic void decrementNumberOfDataRecord()
throws HeapException
HeapExceptionpublic int getNumberOfDataRecord()
public int getNumberOfFreeRecord()
throws HeapException
HeapExceptionpublic void clearReadCache()
public long getFirstLeafPagePosition()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.