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

#include <StatsTable.h>

Inheritance diagram for Hypertable::StatsTable:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::StatsTable:
Collaboration graph
[legend]

Public Member Functions

 StatsTable ()
 
 StatsTable (const Hypertable::StatsTable &other)
 
void clear ()
 
bool operator== (const StatsTable &other) const
 
bool operator!= (const StatsTable &other) const
 
- Public Member Functions inherited from Hypertable::StatsSerializable
 StatsSerializable (uint16_t _id, uint8_t _group_count)
 Constructor; creates a new object with an ID and a number of groups. More...
 
 StatsSerializable (const StatsSerializable &other)
 Copy constructor. More...
 
StatsSerializableoperator= (const StatsSerializable &other)
 Assignment operator. More...
 
size_t encoded_length () const
 Returns the encoded length of this object. More...
 
void encode (uint8_t **bufp) const
 Encodes the statistics to a serialized buffer. More...
 
void decode (const uint8_t **bufp, size_t *remainp)
 Deserializes this object from a buffer. More...
 
bool operator== (const StatsSerializable &other) const
 Equal operator. More...
 
bool operator!= (const StatsSerializable &other) const
 Not Equal operator. More...
 

Public Attributes

std::string table_id
 
uint32_t range_count
 
uint32_t scanner_count
 
uint64_t cell_count
 
uint64_t file_count
 
uint64_t scans
 
uint64_t cells_scanned
 
uint64_t cells_returned
 
uint64_t bytes_scanned
 
uint64_t bytes_returned
 
uint64_t updates
 
uint64_t cells_written
 
uint64_t bytes_written
 
uint64_t disk_bytes_read
 
uint64_t disk_used
 
uint64_t key_bytes
 
uint64_t value_bytes
 
double compression_ratio
 
uint64_t memory_used
 
uint64_t memory_allocated
 
uint64_t shadow_cache_memory
 
uint64_t block_index_memory
 
uint64_t bloom_filter_memory
 
uint64_t bloom_filter_accesses
 
uint64_t bloom_filter_maybes
 

Protected Member Functions

virtual size_t encoded_length_group (int group) const
 Abstruct function returning the serialized length of a group. More...
 
virtual void encode_group (int group, uint8_t **bufp) const
 Abstruct function to serialize a group into a memory buffer. More...
 
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. More...
 

Additional Inherited Members

- Protected Types inherited from Hypertable::StatsSerializable
enum  Identifier { SYSTEM = 1, RANGE = 2, TABLE = 3, RANGE_SERVER = 4 }
 Statistics identifer; assigned in constructor. More...
 
- Protected Attributes inherited from Hypertable::StatsSerializable
uint16_t id
 The statistics ID. More...
 
uint8_t group_count
 Number of groups in group_ids. More...
 
uint8_t group_ids [32]
 The actual group IDs. More...
 

Detailed Description

Definition at line 31 of file StatsTable.h.

Constructor & Destructor Documentation

StatsTable::StatsTable ( )

Definition at line 35 of file StatsTable.cc.

Hypertable::StatsTable::StatsTable ( const Hypertable::StatsTable other)
inline

Definition at line 34 of file StatsTable.h.

Member Function Documentation

void StatsTable::clear ( )

Definition at line 41 of file StatsTable.cc.

void StatsTable::decode_group ( int  group,
uint16_t  len,
const uint8_t **  bufp,
size_t *  remainp 
)
protectedvirtual

Abstruct function to deserialize a group from a memory buffer.

Parameters
groupThe group id
lenThe size of the serialized group data
bufpPointer to pointer to the serialized data
remainpPointer to the remaining size

Implements Hypertable::StatsSerializable.

Definition at line 135 of file StatsTable.cc.

void StatsTable::encode_group ( int  group,
uint8_t **  bufp 
) const
protectedvirtual

Abstruct function to serialize a group into a memory buffer.

Parameters
groupThe group id
bufpPointer to a pointer to the memory buffer

Implements Hypertable::StatsSerializable.

Definition at line 103 of file StatsTable.cc.

size_t StatsTable::encoded_length_group ( int  group) const
protectedvirtual

Abstruct function returning the serialized length of a group.

Parameters
groupThe group id
Returns
The size of the serialized group, in bytes

Implements Hypertable::StatsSerializable.

Definition at line 69 of file StatsTable.cc.

bool Hypertable::StatsTable::operator!= ( const StatsTable other) const
inline

Definition at line 66 of file StatsTable.h.

bool StatsTable::operator== ( const StatsTable other) const

Definition at line 167 of file StatsTable.cc.

Member Data Documentation

uint64_t Hypertable::StatsTable::block_index_memory

Definition at line 91 of file StatsTable.h.

uint64_t Hypertable::StatsTable::bloom_filter_accesses

Definition at line 93 of file StatsTable.h.

uint64_t Hypertable::StatsTable::bloom_filter_maybes

Definition at line 94 of file StatsTable.h.

uint64_t Hypertable::StatsTable::bloom_filter_memory

Definition at line 92 of file StatsTable.h.

uint64_t Hypertable::StatsTable::bytes_returned

Definition at line 79 of file StatsTable.h.

uint64_t Hypertable::StatsTable::bytes_scanned

Definition at line 78 of file StatsTable.h.

uint64_t Hypertable::StatsTable::bytes_written

Definition at line 82 of file StatsTable.h.

uint64_t Hypertable::StatsTable::cell_count

Definition at line 73 of file StatsTable.h.

uint64_t Hypertable::StatsTable::cells_returned

Definition at line 77 of file StatsTable.h.

uint64_t Hypertable::StatsTable::cells_scanned

Definition at line 76 of file StatsTable.h.

uint64_t Hypertable::StatsTable::cells_written

Definition at line 81 of file StatsTable.h.

double Hypertable::StatsTable::compression_ratio

Definition at line 87 of file StatsTable.h.

uint64_t Hypertable::StatsTable::disk_bytes_read

Definition at line 83 of file StatsTable.h.

uint64_t Hypertable::StatsTable::disk_used

Definition at line 84 of file StatsTable.h.

uint64_t Hypertable::StatsTable::file_count

Definition at line 74 of file StatsTable.h.

uint64_t Hypertable::StatsTable::key_bytes

Definition at line 85 of file StatsTable.h.

uint64_t Hypertable::StatsTable::memory_allocated

Definition at line 89 of file StatsTable.h.

uint64_t Hypertable::StatsTable::memory_used

Definition at line 88 of file StatsTable.h.

uint32_t Hypertable::StatsTable::range_count

Definition at line 71 of file StatsTable.h.

uint32_t Hypertable::StatsTable::scanner_count

Definition at line 72 of file StatsTable.h.

uint64_t Hypertable::StatsTable::scans

Definition at line 75 of file StatsTable.h.

uint64_t Hypertable::StatsTable::shadow_cache_memory

Definition at line 90 of file StatsTable.h.

std::string Hypertable::StatsTable::table_id

Definition at line 70 of file StatsTable.h.

uint64_t Hypertable::StatsTable::updates

Definition at line 80 of file StatsTable.h.

uint64_t Hypertable::StatsTable::value_bytes

Definition at line 86 of file StatsTable.h.


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