0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
Hypertable::MaintenanceFlag::Map Class Reference

Maps object pointers to bit fields. More...

#include <MaintenanceFlag.h>

Inheritance diagram for Hypertable::MaintenanceFlag::Map:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::MaintenanceFlag::Map:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Member Function Documentation

bool Hypertable::MaintenanceFlag::Map::compaction ( const void *  key)
inline

Test if compaction needs to be perfomed on object.

Parameters
keyPointer to object (AccessGroup) to test for compaction
Returns
true if compaction is to be performed on object, false otherwise

Definition at line 204 of file MaintenanceFlag.h.

int Hypertable::MaintenanceFlag::Map::flags ( const void *  key)
inline

Returns bit field for a give pointer.

Parameters
keyPointer for which to return bit field
Returns
Bit field correspoding to key

Definition at line 193 of file MaintenanceFlag.h.

bool Hypertable::MaintenanceFlag::Map::memory_purge ( const void *  key)
inline

Test if memory purge needs to be perfomed on object.

Parameters
keyPointer to object (AccessGroup) to test for memory purge
Returns
true if memory purge is to be performed on object, false otherwise

Definition at line 226 of file MaintenanceFlag.h.

bool Hypertable::MaintenanceFlag::Map::minor_compaction ( const void *  key)
inline

Test if minor compaction needs to be perfomed on object.

Parameters
keyPointer to object (AccessGroup) to test for minor compaction
Returns
true if minor compaction is to be performed on object, false otherwise

Definition at line 215 of file MaintenanceFlag.h.


The documentation for this class was generated from the following file: