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