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::PhantomCommitRanges Class Reference

Request parameters for phantom commit ranges function. More...

#include <PhantomCommitRanges.h>

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

Public Member Functions

 PhantomCommitRanges ()
 Constructor. More...
 
 PhantomCommitRanges (int64_t op_id, const String &location, int32_t plan_generation, const vector< QualifiedRangeSpec > &range_specs)
 Constructor. More...
 
int64_t op_id () const
 Gets operation ID. More...
 
const char * location () const
 Gets location. More...
 
int32_t plan_generation () const
 Gets plan generation. More...
 
const vector
< QualifiedRangeSpec > & 
range_specs () const
 Gets range specifications. 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

int64_t m_op_id
 Operation ID More...
 
const char * m_location
 Location. More...
 
int32_t m_plan_generation
 Plan generation. More...
 
vector< QualifiedRangeSpecm_range_specs
 Vector of range specifications. More...
 

Additional Inherited Members

Detailed Description

Request parameters for phantom commit ranges function.

Definition at line 51 of file PhantomCommitRanges.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 56 of file PhantomCommitRanges.h.

Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::PhantomCommitRanges ( int64_t  op_id,
const String location,
int32_t  plan_generation,
const vector< QualifiedRangeSpec > &  range_specs 
)
inline

Constructor.

Initializes with parameters for encoding.

Parameters
op_idOperation ID
locationLocation
plan_generationPlan generation
range_specsRange specifications

Definition at line 64 of file PhantomCommitRanges.h.

Member Function Documentation

void PhantomCommitRanges::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 70 of file PhantomCommitRanges.cc.

void PhantomCommitRanges::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:

EncodingDescription
i64Operation ID
vstrLocation
i32Plan generation
i32Range specification count
For each range specification ...
QualifiedRangeSpecQualified range specification

Implements Hypertable::Serializable.

Definition at line 61 of file PhantomCommitRanges.cc.

size_t PhantomCommitRanges::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 42 of file PhantomCommitRanges.cc.

uint8_t PhantomCommitRanges::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 38 of file PhantomCommitRanges.cc.

const char* Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::location ( ) const
inline

Gets location.

Returns
Location

Definition at line 76 of file PhantomCommitRanges.h.

int64_t Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::op_id ( ) const
inline

Gets operation ID.

Returns
Operation ID

Definition at line 72 of file PhantomCommitRanges.h.

int32_t Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::plan_generation ( ) const
inline

Gets plan generation.

Returns
Plan generation

Definition at line 80 of file PhantomCommitRanges.h.

const vector<QualifiedRangeSpec>& Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::range_specs ( ) const
inline

Gets range specifications.

Returns
Vector of range specifications

Definition at line 84 of file PhantomCommitRanges.h.

Member Data Documentation

const char* Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::m_location
private

Location.

Definition at line 114 of file PhantomCommitRanges.h.

int64_t Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::m_op_id
private

Operation ID

Definition at line 111 of file PhantomCommitRanges.h.

int32_t Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::m_plan_generation
private

Plan generation.

Definition at line 117 of file PhantomCommitRanges.h.

vector<QualifiedRangeSpec> Hypertable::Lib::RangeServer::Request::Parameters::PhantomCommitRanges::m_range_specs
private

Vector of range specifications.

Definition at line 120 of file PhantomCommitRanges.h.


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