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

Scanner profile data. More...

#include <ProfileDataScanner.h>

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

Public Member Functions

ProfileDataScanneroperator+= (const ProfileDataScanner &other)
 Adds profile data from another object. More...
 
ProfileDataScanneroperator-= (const ProfileDataScanner &other)
 Subtracts profile data from another object. More...
 
std::string to_string ()
 Returns human-readible string describing profile data. More...
 
- Public Member Functions inherited from Hypertable::Serializable
virtual size_t encoded_length () const
 Returns serialized object length. More...
 
virtual void encode (uint8_t **bufp) const
 Writes serialized representation of object to a buffer. More...
 
virtual void decode (const uint8_t **bufp, size_t *remainp)
 Reads serialized representation of object from a buffer. More...
 

Public Attributes

int32_t subscanners {}
 Number of RangeServer::create_scanner() calls. More...
 
int32_t scanblocks {}
 Number of scan blocks returned from RangeServers. More...
 
int64_t cells_scanned {}
 Number of cell scanned while executing scan. More...
 
int64_t cells_returned {}
 Number of cell returned while executing scan. More...
 
int64_t bytes_scanned {}
 Number of bytes scanned while executing scan. More...
 
int64_t bytes_returned {}
 Number of bytes returned while executing scan. More...
 
int64_t disk_read {}
 Number of bytes read from disk while executing scan. More...
 
std::set< std::string > servers
 Set of server proxy names participating in scan. More...
 

Private Member Functions

uint8_t encoding_version () const override
 Returns encoding version. More...
 
size_t encoded_length_internal () const override
 Returns internal serialized length. More...
 
void encode_internal (uint8_t **bufp) const override
 Writes serialized representation of object to a buffer. More...
 
void decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override
 Reads serialized representation of object from a buffer. More...
 

Additional Inherited Members

Detailed Description

Scanner profile data.

This class is used to store scanner profile data.

Definition at line 43 of file ProfileDataScanner.h.

Member Function Documentation

void ProfileDataScanner::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Reads serialized representation of object from a buffer.

This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized encoding remaining
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 66 of file ProfileDataScanner.cc.

void ProfileDataScanner::encode_internal ( uint8_t **  bufp) const
overrideprivatevirtual

Writes serialized representation of object to a buffer.

This function is to be overridden by derived classes and should encode the object per-se.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Implements Hypertable::Serializable.

Definition at line 51 of file ProfileDataScanner.cc.

size_t ProfileDataScanner::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

This function is to be overridden by derived classes and should return the length of the the serialized object per-se.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 42 of file ProfileDataScanner.cc.

uint8_t ProfileDataScanner::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 38 of file ProfileDataScanner.cc.

ProfileDataScanner & ProfileDataScanner::operator+= ( const ProfileDataScanner other)

Adds profile data from another object.

Adds profile data from other.

Parameters
otherOther object containing profile data to add

Definition at line 82 of file ProfileDataScanner.cc.

ProfileDataScanner & ProfileDataScanner::operator-= ( const ProfileDataScanner other)

Subtracts profile data from another object.

Subtracts profile data from other.

Parameters
otherOther object containing profile data to subtract

Definition at line 94 of file ProfileDataScanner.cc.

string ProfileDataScanner::to_string ( )

Returns human-readible string describing profile data.

Returns
Human-readible string describing profile data.

Definition at line 107 of file ProfileDataScanner.cc.

Member Data Documentation

int64_t Hypertable::ProfileDataScanner::bytes_returned {}

Number of bytes returned while executing scan.

Definition at line 76 of file ProfileDataScanner.h.

int64_t Hypertable::ProfileDataScanner::bytes_scanned {}

Number of bytes scanned while executing scan.

Definition at line 73 of file ProfileDataScanner.h.

int64_t Hypertable::ProfileDataScanner::cells_returned {}

Number of cell returned while executing scan.

Definition at line 70 of file ProfileDataScanner.h.

int64_t Hypertable::ProfileDataScanner::cells_scanned {}

Number of cell scanned while executing scan.

Definition at line 67 of file ProfileDataScanner.h.

int64_t Hypertable::ProfileDataScanner::disk_read {}

Number of bytes read from disk while executing scan.

Definition at line 79 of file ProfileDataScanner.h.

int32_t Hypertable::ProfileDataScanner::scanblocks {}

Number of scan blocks returned from RangeServers.

Definition at line 64 of file ProfileDataScanner.h.

std::set<std::string> Hypertable::ProfileDataScanner::servers

Set of server proxy names participating in scan.

Definition at line 82 of file ProfileDataScanner.h.

int32_t Hypertable::ProfileDataScanner::subscanners {}

Number of RangeServer::create_scanner() calls.

Definition at line 61 of file ProfileDataScanner.h.


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