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

Request parameters for phantom load function. More...

#include <PhantomLoad.h>

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

Public Member Functions

 PhantomLoad ()
 Constructor. More...
 
 PhantomLoad (const String &location, int32_t plan_generation, const vector< int32_t > &fragments, const vector< QualifiedRangeSpec > &range_specs, const vector< RangeState > &range_states)
 Constructor. More...
 
const char * location () const
 Gets location. More...
 
int32_t plan_generation () const
 Gets plan generation. More...
 
const vector< int32_t > & fragments () const
 Gets fragments. More...
 
const vector
< QualifiedRangeSpec > & 
range_specs () const
 Gets range specifications. More...
 
const vector< RangeState > & range_states () const
 Gets range states. 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

const char * m_location
 Location. More...
 
int32_t m_plan_generation
 Plan generation. More...
 
vector< int32_t > m_fragments
 Fragments. More...
 
vector< QualifiedRangeSpecm_range_specs
 Vector of range specifications. More...
 
vector< RangeStatem_range_states
 Vector of range states. More...
 

Additional Inherited Members

Detailed Description

Request parameters for phantom load function.

Definition at line 50 of file PhantomLoad.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 55 of file PhantomLoad.h.

Hypertable::Lib::RangeServer::Request::Parameters::PhantomLoad::PhantomLoad ( const String location,
int32_t  plan_generation,
const vector< int32_t > &  fragments,
const vector< QualifiedRangeSpec > &  range_specs,
const vector< RangeState > &  range_states 
)
inline

Constructor.

Initializes with parameters for encoding.

Parameters
locationLocation
plan_generationPlan generation
fragmentsFragment IDs
range_specsRange specifications
range_statesRange states

Definition at line 64 of file PhantomLoad.h.

Member Function Documentation

void PhantomLoad::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 83 of file PhantomLoad.cc.

void PhantomLoad::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
vstrLocation
i32Plan generation
i32Fragment count
For each fragment ...
i32Fragment number
i32Range specification count
For each range specification ...
QualifiedRangeSpecQualified range specification
i32Range state count
For each range state ...
RangeStateRange state

Implements Hypertable::Serializable.

Definition at line 69 of file PhantomLoad.cc.

size_t PhantomLoad::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 PhantomLoad.cc.

uint8_t PhantomLoad::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 37 of file PhantomLoad.cc.

const vector<int32_t>& Hypertable::Lib::RangeServer::Request::Parameters::PhantomLoad::fragments ( ) const
inline

Gets fragments.

Returns
Fragments

Definition at line 82 of file PhantomLoad.h.

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

Gets location.

Returns
Location

Definition at line 74 of file PhantomLoad.h.

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

Gets plan generation.

Returns
Plan generation

Definition at line 78 of file PhantomLoad.h.

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

Gets range specifications.

Returns
Vector of range specifications

Definition at line 86 of file PhantomLoad.h.

const vector<RangeState>& Hypertable::Lib::RangeServer::Request::Parameters::PhantomLoad::range_states ( ) const
inline

Gets range states.

Returns
Vector of range states

Definition at line 90 of file PhantomLoad.h.

Member Data Documentation

vector<int32_t> Hypertable::Lib::RangeServer::Request::Parameters::PhantomLoad::m_fragments
private

Fragments.

Definition at line 123 of file PhantomLoad.h.

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

Location.

Definition at line 117 of file PhantomLoad.h.

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

Plan generation.

Definition at line 120 of file PhantomLoad.h.

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

Vector of range specifications.

Definition at line 126 of file PhantomLoad.h.

vector<RangeState> Hypertable::Lib::RangeServer::Request::Parameters::PhantomLoad::m_range_states
private

Vector of range states.

Definition at line 129 of file PhantomLoad.h.


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