@NotStorableClass public class ToGarbageRecordManager extends Object
Constructor and Description |
---|
ToGarbageRecordManager(StoreHeader storeHeader,
HeapRecordableManager heapRecordableManager,
HelperBinaryConversion helperBinaryConversion) |
Modifier and Type | Method and Description |
---|---|
boolean |
addToGarbage(DataRecordIdentifier dataRecordIdentifier)
add a data record identifier to garbage to the list ( sorted red black
tree )
|
boolean |
containsToGarbage(DataRecordIdentifier dataRecordIdentifier) |
void |
getAllDataRecordIdentifiers(Set<DataRecordIdentifier> setToUpdate) |
int |
getNumberOfToGarbage()
get number of to garbage in the list
|
List<DataRecordIdentifierRBTNode> |
getToGarbage()
for test purpose only
|
boolean |
isEmpty() |
DataRecordIdentifier |
pollFirstToGarbage()
Retrieves and removes the first to garbage record identifier
|
boolean |
removeToGarbage(DataRecordIdentifier dataRecordIdentifier)
remove a data record identifier of to garbage from the list if exist.
|
public ToGarbageRecordManager(StoreHeader storeHeader, HeapRecordableManager heapRecordableManager, HelperBinaryConversion helperBinaryConversion)
public boolean addToGarbage(DataRecordIdentifier dataRecordIdentifier) throws GarbageException
dataRecordIdentifier
- data record identifier of to garbageGarbageException
public boolean removeToGarbage(DataRecordIdentifier dataRecordIdentifier) throws GarbageException
dataRecordIdentifier
- data record identifier for to garbage to remove if existGarbageException
public DataRecordIdentifier pollFirstToGarbage() throws GarbageException
GarbageException
public int getNumberOfToGarbage() throws GarbageException
GarbageException
public boolean isEmpty() throws GarbageException
GarbageException
public boolean containsToGarbage(DataRecordIdentifier dataRecordIdentifier) throws GarbageException
dataRecordIdentifier
- GarbageException
@Fortest public List<DataRecordIdentifierRBTNode> getToGarbage() throws GarbageException
GarbageException
public void getAllDataRecordIdentifiers(Set<DataRecordIdentifier> setToUpdate) throws GarbageException
GarbageException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.