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

Request parameters for dump function. More...

#include <Dump.h>

Inheritance diagram for Hypertable::Lib::RangeServer::Request::Parameters::Dump:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::Lib::RangeServer::Request::Parameters::Dump:
Collaboration graph
[legend]

Public Member Functions

 Dump ()
 Constructor. More...
 
 Dump (const std::string &fname, bool no_keys)
 Constructor. More...
 
const char * fname ()
 Gets output file name. More...
 
bool no_keys ()
 Gets no keys flag. 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...
 

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

Private Attributes

std::string m_fname
 Output file name. More...
 
bool m_no_keys {}
 Flag indicating cell cache keys should not be dumped. More...
 

Additional Inherited Members

Detailed Description

Request parameters for dump function.

Definition at line 48 of file Dump.h.

Constructor & Destructor Documentation

Hypertable::Lib::RangeServer::Request::Parameters::Dump::Dump ( )
inline

Constructor.

Empty initialization for decoding.

Definition at line 53 of file Dump.h.

Hypertable::Lib::RangeServer::Request::Parameters::Dump::Dump ( const std::string &  fname,
bool  no_keys 
)
inline

Constructor.

Initializes with parameters for encoding. Initializes m_fname with fname and m_no_keys with no_keys.

Parameters
fnameOutput file name for dump
no_keysFlag indicating cell cache keys should not be dumped

Definition at line 60 of file Dump.h.

Member Function Documentation

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

Reads serialized representation of object from a buffer.

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

Implements Hypertable::Serializable.

Definition at line 66 of file Dump.cc.

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

Writes serialized representation of object to a buffer.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Encoding is as follows:

Encoding Description
vstr Output file name
bool Flag indicating cell cache keys should not be dumped

Implements Hypertable::Serializable.

Definition at line 61 of file Dump.cc.

size_t Dump::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

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

Implements Hypertable::Serializable.

Definition at line 41 of file Dump.cc.

uint8_t Dump::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 37 of file Dump.cc.

const char* Hypertable::Lib::RangeServer::Request::Parameters::Dump::fname ( )
inline

Gets output file name.

Returns
Output file name

Definition at line 65 of file Dump.h.

bool Hypertable::Lib::RangeServer::Request::Parameters::Dump::no_keys ( )
inline

Gets no keys flag.

Returns
no keys flag

Definition at line 69 of file Dump.h.

Member Data Documentation

std::string Hypertable::Lib::RangeServer::Request::Parameters::Dump::m_fname
private

Output file name.

Definition at line 96 of file Dump.h.

bool Hypertable::Lib::RangeServer::Request::Parameters::Dump::m_no_keys {}
private

Flag indicating cell cache keys should not be dumped.

Definition at line 99 of file Dump.h.


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