29 #ifndef HYPERTABLE_MAINTENANCEFLAG_H
30 #define HYPERTABLE_MAINTENANCEFLAG_H
32 #include <unordered_map>
44 namespace MaintenanceFlag {
187 class Map :
public std::unordered_map<const void *, int, Hash, Equal> {
194 iterator iter = this->find(key);
195 if (iter != this->end())
196 return (*iter).second;
205 iterator iter = this->find(key);
206 if (iter != this->end())
216 iterator iter = this->find(key);
217 if (iter != this->end())
227 iterator iter = this->find(key);
228 if (iter != this->end())
238 #endif // HYPERTABLE_MAINTENANCEFLAG_H
Equality function for pointers.
Recompute CellStore merge run to test if merging compaction needed.
Memory shadow cache purge mask.
bool purge_cellstore(int flags)
Tests the PURGE_CELLSTORE bit of flags
Memory cellstore index purge mask.
size_t operator()(const void *obj) const
bool purge_shadow_cache(int flags)
Tests the PURGE_SHADOW_CACHE bit of flags
Maps object pointers to bit fields.
bool recompute_merge_run(int flags)
Tests the RECOMPUTE_MERGE_RUN bit of flags
bool compaction(const void *key)
Test if compaction needs to be perfomed on object.
bool minor_compaction(const void *key)
Test if minor compaction needs to be perfomed on object.
int flags(const void *key)
Returns bit field for a give pointer.
bool move_compaction(int flags)
Tests the COMPACT_MOVE bit of flags
bool compaction(int flags)
Tests the COMPACT bit of flags
bool split(int flags)
Tests the SPLIT bit of flags
bool operator()(const void *obj1, const void *obj2) const
bool relinquish(int flags)
Tests the RELINQUISH bit of flags
bool major_compaction(int flags)
Tests the COMPACT_MAJOR bit of flags
Hash function class for pointers.
bool gc_compaction(int flags)
Tests the COMPACT_GC bit of flags
bool merging_compaction(int flags)
Tests the COMPACT_MERGING bit of flags
bool minor_compaction(int flags)
Tests the COMPACT_MINOR bit of flags
bool memory_purge(const void *key)
Test if memory purge needs to be perfomed on object.