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 | Related Functions | List of all members
Hypertable::Lib::RowInterval Class Reference

Represents a row interval. More...

#include <RowInterval.h>

Inheritance diagram for Hypertable::Lib::RowInterval:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::Lib::RowInterval:
Collaboration graph
[legend]

Public Member Functions

 RowInterval ()
 
 RowInterval (const char *start_row, bool start_row_inclusive, const char *end_row, bool end_row_inclusive)
 
 RowInterval (const uint8_t **bufp, size_t *remainp)
 
virtual ~RowInterval ()
 
const string render_hql () const
 Renders row interval as HQL. 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

const char * start {}
 
bool start_inclusive {true}
 
const char * end {}
 
bool end_inclusive {true}
 

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

Related Functions

(Note that these are not member functions.)

ostream & operator<< (ostream &os, const RowInterval &ri)
 

Additional Inherited Members

Detailed Description

Represents a row interval.

c-string data members are not managed so caller must handle (de)allocation.

Definition at line 38 of file RowInterval.h.

Constructor & Destructor Documentation

Hypertable::Lib::RowInterval::RowInterval ( )
inline

Definition at line 40 of file RowInterval.h.

Hypertable::Lib::RowInterval::RowInterval ( const char *  start_row,
bool  start_row_inclusive,
const char *  end_row,
bool  end_row_inclusive 
)
inline

Definition at line 41 of file RowInterval.h.

Hypertable::Lib::RowInterval::RowInterval ( const uint8_t **  bufp,
size_t *  remainp 
)
inline

Definition at line 45 of file RowInterval.h.

virtual Hypertable::Lib::RowInterval::~RowInterval ( )
inlinevirtual

Definition at line 49 of file RowInterval.h.

Member Function Documentation

void RowInterval::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 76 of file RowInterval.cc.

void RowInterval::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 Start row
bool Start row inclusive flag
vstr End row
bool End row inclusive flag

Implements Hypertable::Serializable.

Definition at line 69 of file RowInterval.cc.

size_t RowInterval::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 40 of file RowInterval.cc.

uint8_t RowInterval::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 36 of file RowInterval.cc.

const string RowInterval::render_hql ( ) const

Renders row interval as HQL.

Returns
HQL string representing row interval.

Definition at line 85 of file RowInterval.cc.

Friends And Related Function Documentation

ostream & operator<< ( ostream &  os,
const RowInterval ri 
)
related

Definition at line 111 of file RowInterval.cc.

Member Data Documentation

const char* Hypertable::Lib::RowInterval::end {}

Definition at line 57 of file RowInterval.h.

bool Hypertable::Lib::RowInterval::end_inclusive {true}

Definition at line 58 of file RowInterval.h.

const char* Hypertable::Lib::RowInterval::start {}

Definition at line 55 of file RowInterval.h.

bool Hypertable::Lib::RowInterval::start_inclusive {true}

Definition at line 56 of file RowInterval.h.


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