22 #ifndef Hypertable_Lib_StatsTable_h
23 #define Hypertable_Lib_StatsTable_h
67 return !(*
this == other);
98 virtual void encode_group(
int group, uint8_t **bufp)
const;
99 virtual void decode_group(
int group, uint16_t len,
const uint8_t **bufp,
size_t *remainp);
104 #endif // Hypertable_Lib_StatsTable_h
Abstract base class for managing serialized statistics.
virtual void encode_group(int group, uint8_t **bufp) const
Abstruct function to serialize a group into a memory buffer.
Base class managing serialized statistics.
uint64_t block_index_memory
uint64_t memory_allocated
virtual void decode_group(int group, uint16_t len, const uint8_t **bufp, size_t *remainp)
Abstruct function to deserialize a group from a memory buffer.
uint64_t bloom_filter_memory
uint8_t group_count
Number of groups in group_ids.
StatsTable(const Hypertable::StatsTable &other)
uint64_t shadow_cache_memory
uint16_t id
The statistics ID.
bool operator==(const StatsTable &other) const
uint8_t group_ids[32]
The actual group IDs.
uint64_t bloom_filter_maybes
uint64_t bloom_filter_accesses
bool operator!=(const StatsTable &other) const
virtual size_t encoded_length_group(int group) const
Abstruct function returning the serialized length of a group.