@NotStorableClass public class BtreePlusDataManager extends AbstractHeapDataManager
CLEAR_STANDBY_MODIFICATION_FAILED, FAILED_READ_DATA_RECORD, FLUSH_FAILED, logger
Constructor and Description |
---|
BtreePlusDataManager(HeapFileSetup setup) |
Modifier and Type | Method and Description |
---|---|
String |
backup(long identifier,
int maxBackup) |
protected void |
clearImpl() |
protected void |
clearStandbyModificationImpl() |
protected void |
closeHeapManagerAfterException()
close heap element manager after exception
|
protected Iterator<DataRecordIdentifier> |
dataRecordIteratorImpl() |
protected boolean |
deleteDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) |
protected void |
flushImp()
implement all flush action after call to
#updateHeapRecordImpl(DataRecordIdentifier, IHeapDataRecord) |
protected long |
freeSizeImpl() |
BtreePlusElementMgr |
getBtreePlusElementMgr() |
protected Set<DataRecordIdentifier> |
getDataRecordIdentifierSetImpl() |
long |
getLastRecordPositionInFile()
for test purpose
|
protected DataRecordIdentifier |
getNewDataRecordIdentifierImpl()
to get a new data identifier for future data record creation
|
protected DataRecordIdentifier |
getNextFreeDataRecordIdentifierImpl() |
protected int |
getNumberOfDataRecordImpl() |
protected int |
getNumberOfFreeRecordImpl() |
long |
getRecordPositionInfile(DataRecordIdentifier identifier)
for test purpose
|
String |
getStorageFileName() |
protected boolean |
hasDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) |
protected long |
heapSizeImpl() |
boolean |
isDataLost()
return true if data lost after file stable state reconstruction.
|
protected byte[] |
readDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) |
protected void |
removeFiles()
remove existing files
|
protected DataRecordIdentifier |
removeFirstDataRecordImpl() |
void |
setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager) |
protected void |
setNextFreeDataRecordIdentifierImpl(DataRecordIdentifier dataRecordIdentifier) |
protected void |
startServiceImpl(boolean removeFiles)
to implement open actions
|
protected void |
stopServiceImpl(boolean removeFiles)
to implement close actions
|
protected long |
usedSizeImpl() |
protected boolean |
writeDataRecordImpl(DataRecordIdentifier dataRecordIdentifier,
byte[] data) |
ceilingDataRecordIdentifier, ceilingDataRecordIdentifierImpl, clear, clearStandbyModification, dataRecordIterator, deleteDataRecord, firstDataRecordIdentifier, firstDataRecordIdentifierImpl, floorDataRecordIdentifier, floorDataRecordIdentifierImpl, flush, freeSize, getDataRecordIdentifierSet, getNewDataRecordIdentifier, getNextFreeDataRecordIdentifier, getNumberOfDataRecord, getNumberOfFreeRecord, hasDataRecord, heapSize, higherDataRecordIdentifier, higherDataRecordIdentifierImpl, isServiceStarted, lastDataRecordIdentifier, lastDataRecordIdentifierImpl, lowerDataRecordIdentifier, lowerDataRecordIdentifierImpl, nextDataRecordIdentifier, nextDataRecordIdentifierImpl, readDataRecord, removeFirstDataRecord, setNextFreeDataRecordIdentifier, startService, stopService, stopService, usedSize, writeDataRecord
public BtreePlusDataManager(HeapFileSetup setup) throws HeapException
HeapException
public BtreePlusElementMgr getBtreePlusElementMgr()
public boolean isDataLost()
IHeapDataManager
public String backup(long identifier, int maxBackup) throws HeapException
HeapException
public String getStorageFileName() throws HeapException
HeapException
public void setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager) throws HeapException
HeapException
protected void removeFiles() throws HeapException
AbstractHeapDataManager
removeFiles
in class AbstractHeapDataManager
HeapException
protected void startServiceImpl(boolean removeFiles) throws HeapException
AbstractHeapDataManager
startServiceImpl
in class AbstractHeapDataManager
HeapException
protected void stopServiceImpl(boolean removeFiles) throws HeapException
AbstractHeapDataManager
stopServiceImpl
in class AbstractHeapDataManager
HeapException
protected void clearImpl() throws HeapException
clearImpl
in class AbstractHeapDataManager
HeapException
protected void flushImp() throws HeapException
AbstractHeapDataManager
#updateHeapRecordImpl(DataRecordIdentifier, IHeapDataRecord)
flushImp
in class AbstractHeapDataManager
HeapException
protected void clearStandbyModificationImpl() throws HeapException
clearStandbyModificationImpl
in class AbstractHeapDataManager
HeapException
protected void closeHeapManagerAfterException()
AbstractHeapDataManager
closeHeapManagerAfterException
in class AbstractHeapDataManager
protected DataRecordIdentifier getNextFreeDataRecordIdentifierImpl() throws HeapException
getNextFreeDataRecordIdentifierImpl
in class AbstractHeapDataManager
HeapException
protected void setNextFreeDataRecordIdentifierImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
setNextFreeDataRecordIdentifierImpl
in class AbstractHeapDataManager
HeapException
protected DataRecordIdentifier getNewDataRecordIdentifierImpl() throws HeapException
AbstractHeapDataManager
getNewDataRecordIdentifierImpl
in class AbstractHeapDataManager
HeapException
protected byte[] readDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
readDataRecordImpl
in class AbstractHeapDataManager
HeapException
protected boolean hasDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
hasDataRecordImpl
in class AbstractHeapDataManager
HeapException
protected boolean writeDataRecordImpl(DataRecordIdentifier dataRecordIdentifier, byte[] data) throws HeapException
writeDataRecordImpl
in class AbstractHeapDataManager
HeapException
protected boolean deleteDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
deleteDataRecordImpl
in class AbstractHeapDataManager
HeapException
protected DataRecordIdentifier removeFirstDataRecordImpl() throws HeapException
removeFirstDataRecordImpl
in class AbstractHeapDataManager
HeapException
protected int getNumberOfDataRecordImpl() throws HeapException
getNumberOfDataRecordImpl
in class AbstractHeapDataManager
HeapException
protected int getNumberOfFreeRecordImpl() throws HeapException
getNumberOfFreeRecordImpl
in class AbstractHeapDataManager
HeapException
protected long heapSizeImpl() throws HeapException
heapSizeImpl
in class AbstractHeapDataManager
HeapException
protected long freeSizeImpl() throws HeapException
freeSizeImpl
in class AbstractHeapDataManager
HeapException
protected long usedSizeImpl() throws HeapException
usedSizeImpl
in class AbstractHeapDataManager
HeapException
@Fortest protected Set<DataRecordIdentifier> getDataRecordIdentifierSetImpl() throws HeapException
getDataRecordIdentifierSetImpl
in class AbstractHeapDataManager
HeapException
protected Iterator<DataRecordIdentifier> dataRecordIteratorImpl() throws HeapException
dataRecordIteratorImpl
in class AbstractHeapDataManager
HeapException
@Fortest public long getRecordPositionInfile(DataRecordIdentifier identifier) throws HeapException
IHeapDataManager
HeapException
@Fortest public long getLastRecordPositionInFile() throws HeapException
IHeapDataManager
HeapException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.