0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Related Functions | List of all members
Hypertable::RangeSpec Class Reference

Range specification. More...

#include <RangeSpec.h>

Inheritance diagram for Hypertable::RangeSpec:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::RangeSpec:
Collaboration graph
[legend]

Public Types

enum  Type {
  ROOT =0, METADATA =1, SYSTEM =2, USER =3,
  UNKNOWN =4
}
 

Public Member Functions

 RangeSpec ()
 
 RangeSpec (const char *start, const char *end)
 
 RangeSpec (const uint8_t **bufp, size_t *remainp)
 
virtual ~RangeSpec ()
 
bool operator== (const RangeSpec &other) const
 
bool operator!= (const RangeSpec &other) const
 
bool operator< (const RangeSpec &other) const
 
- 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...
 

Static Public Member Functions

static std::string type_str (int type)
 

Public Attributes

const char * start_row
 
const char * end_row
 

Protected 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 RangeSpec &range)
 

Detailed Description

Range specification.

Definition at line 40 of file RangeSpec.h.

Constructor & Destructor Documentation

Hypertable::RangeSpec::RangeSpec ( )
inline

Definition at line 50 of file RangeSpec.h.

Hypertable::RangeSpec::RangeSpec ( const char *  start,
const char *  end 
)
inline

Definition at line 51 of file RangeSpec.h.

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

Definition at line 53 of file RangeSpec.h.

virtual Hypertable::RangeSpec::~RangeSpec ( )
inlinevirtual

Definition at line 54 of file RangeSpec.h.

Member Function Documentation

void RangeSpec::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprotectedvirtual

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.

Reimplemented in Hypertable::RangeSpecManaged.

Definition at line 152 of file RangeSpec.cc.

void RangeSpec::encode_internal ( uint8_t **  bufp) const
overrideprotectedvirtual

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 End row

Implements Hypertable::Serializable.

Definition at line 147 of file RangeSpec.cc.

size_t RangeSpec::encoded_length_internal ( ) const
overrideprotectedvirtual

Returns internal serialized length.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 127 of file RangeSpec.cc.

uint8_t RangeSpec::encoding_version ( ) const
overrideprotectedvirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 123 of file RangeSpec.cc.

bool RangeSpec::operator!= ( const RangeSpec other) const

Definition at line 81 of file RangeSpec.cc.

bool RangeSpec::operator< ( const RangeSpec other) const

Definition at line 85 of file RangeSpec.cc.

bool RangeSpec::operator== ( const RangeSpec other) const

Definition at line 57 of file RangeSpec.cc.

String RangeSpec::type_str ( int  type)
static

Definition at line 41 of file RangeSpec.cc.

Friends And Related Function Documentation

ostream & operator<< ( ostream &  os,
const RangeSpec range 
)
related

Definition at line 166 of file RangeSpec.cc.

Member Data Documentation

const char* Hypertable::RangeSpec::end_row

Definition at line 60 of file RangeSpec.h.

const char* Hypertable::RangeSpec::start_row

Definition at line 59 of file RangeSpec.h.


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