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

Request parameters for load range function. More...

#include <LoadRange.h>

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

Public Member Functions

 LoadRange ()
 Constructor. More...
 
 LoadRange (const TableIdentifier &table, const RangeSpec &range_spec, const RangeState &range_state, bool needs_compaction)
 Constructor. More...
 
const TableIdentifiertable ()
 Gets table identifier. More...
 
const RangeSpecrange_spec ()
 Gets range specification. More...
 
const RangeStaterange_state ()
 Gets range state. More...
 
bool needs_compaction ()
 Gets needs compaction 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

TableIdentifier m_table
 Table identifier More...
 
RangeSpec m_range_spec
 Range specification More...
 
RangeState m_range_state
 Range state More...
 
bool m_needs_compaction {}
 needs compaction flag More...
 

Additional Inherited Members

Detailed Description

Request parameters for load range function.

Definition at line 50 of file LoadRange.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 55 of file LoadRange.h.

Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::LoadRange ( const TableIdentifier table,
const RangeSpec range_spec,
const RangeState range_state,
bool  needs_compaction 
)
inline

Constructor.

Initializes with parameters for encoding.

Parameters
tableTable identifier
range_specRange specification
range_stateRange state
needs_compactionNeeds compaction flag

Definition at line 63 of file LoadRange.h.

Member Function Documentation

void LoadRange::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 77 of file LoadRange.cc.

void LoadRange::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
TableIdentifier Table identifier
RangeSpec Range specification
RangeState Range state
bool needs compaction flag

Implements Hypertable::Serializable.

Definition at line 70 of file LoadRange.cc.

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

uint8_t LoadRange::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 37 of file LoadRange.cc.

bool Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::needs_compaction ( )
inline

Gets needs compaction flag.

Returns
needs compaction flag

Definition at line 82 of file LoadRange.h.

const RangeSpec& Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::range_spec ( )
inline

Gets range specification.

Returns
Range specification

Definition at line 74 of file LoadRange.h.

const RangeState& Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::range_state ( )
inline

Gets range state.

Returns
Range state

Definition at line 78 of file LoadRange.h.

const TableIdentifier& Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::table ( )
inline

Gets table identifier.

Returns
Table identifier

Definition at line 70 of file LoadRange.h.

Member Data Documentation

bool Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::m_needs_compaction {}
private

needs compaction flag

Definition at line 118 of file LoadRange.h.

RangeSpec Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::m_range_spec
private

Range specification

Definition at line 112 of file LoadRange.h.

RangeState Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::m_range_state
private

Range state

Definition at line 115 of file LoadRange.h.

TableIdentifier Hypertable::Lib::RangeServer::Request::Parameters::LoadRange::m_table
private

Table identifier

Definition at line 109 of file LoadRange.h.


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