Maps object pointers to bit fields. More...
#include <MaintenanceFlag.h>
Public Member Functions | |
int | flags (const void *key) |
Returns bit field for a give pointer. More... | |
bool | compaction (const void *key) |
Test if compaction needs to be perfomed on object. More... | |
bool | minor_compaction (const void *key) |
Test if minor compaction needs to be perfomed on object. More... | |
bool | memory_purge (const void *key) |
Test if memory purge needs to be perfomed on object. More... | |
Maps object pointers to bit fields.
When scheduling maintenance for a range, the maintenance scheduler sometimes needs to schedule different maintenance tasks for different AccessGroups and CellStores within the range. This class was introduced to carry per-AccessGroup and per-CellStore maintenance task information from the scheduler to the Range. It's defined generically, but is used to map AccessGroup and CellStore pointers to corresponding bit fields describing what maintenance needs to be performed on them.
Definition at line 187 of file MaintenanceFlag.h.
|
inline |
Test if compaction needs to be perfomed on object.
key | Pointer to object (AccessGroup) to test for compaction |
Definition at line 204 of file MaintenanceFlag.h.
|
inline |
Returns bit field for a give pointer.
key | Pointer for which to return bit field |
key
Definition at line 193 of file MaintenanceFlag.h.
|
inline |
Test if memory purge needs to be perfomed on object.
key | Pointer to object (AccessGroup) to test for memory purge |
Definition at line 226 of file MaintenanceFlag.h.
|
inline |
Test if minor compaction needs to be perfomed on object.
key | Pointer to object (AccessGroup) to test for minor compaction |
Definition at line 215 of file MaintenanceFlag.h.