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

Represents a cell interval. More...

#include <CellInterval.h>

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

Public Member Functions

 CellInterval ()
 
 CellInterval (const char *start_row, const char *start_column, bool start_inclusive, const char *end_row, const char *end_column, bool end_inclusive)
 
 CellInterval (const uint8_t **bufp, size_t *remainp)
 
virtual ~CellInterval ()
 
const string render_hql () const
 Renders cell 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_row
 
const char * start_column {}
 
bool start_inclusive {true}
 
const char * end_row {}
 
const char * end_column {}
 
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 CellInterval &ci)
 

Additional Inherited Members

Detailed Description

Represents a cell interval.

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

Definition at line 38 of file CellInterval.h.

Constructor & Destructor Documentation

Hypertable::Lib::CellInterval::CellInterval ( )
inline

Definition at line 40 of file CellInterval.h.

Hypertable::Lib::CellInterval::CellInterval ( const char *  start_row,
const char *  start_column,
bool  start_inclusive,
const char *  end_row,
const char *  end_column,
bool  end_inclusive 
)
inline

Definition at line 41 of file CellInterval.h.

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

Definition at line 47 of file CellInterval.h.

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

Definition at line 51 of file CellInterval.h.

Member Function Documentation

void CellInterval::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 88 of file CellInterval.cc.

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

Implements Hypertable::Serializable.

Definition at line 79 of file CellInterval.cc.

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

uint8_t CellInterval::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 36 of file CellInterval.cc.

const string CellInterval::render_hql ( ) const

Renders cell interval as HQL.

Returns
HQL string representing cell interval.

Definition at line 99 of file CellInterval.cc.

Friends And Related Function Documentation

ostream & operator<< ( ostream &  os,
const CellInterval ci 
)
related

Definition at line 134 of file CellInterval.cc.

Member Data Documentation

const char* Hypertable::Lib::CellInterval::end_column {}

Definition at line 61 of file CellInterval.h.

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

Definition at line 62 of file CellInterval.h.

const char* Hypertable::Lib::CellInterval::end_row {}

Definition at line 60 of file CellInterval.h.

const char* Hypertable::Lib::CellInterval::start_column {}

Definition at line 58 of file CellInterval.h.

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

Definition at line 59 of file CellInterval.h.

const char* Hypertable::Lib::CellInterval::start_row

Definition at line 57 of file CellInterval.h.


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