#include <RangeSpec.h>
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) |
Range specification.
Definition at line 40 of file RangeSpec.h.
|
inline |
Definition at line 50 of file RangeSpec.h.
|
inline |
Definition at line 51 of file RangeSpec.h.
|
inline |
Definition at line 53 of file RangeSpec.h.
|
inlinevirtual |
Definition at line 54 of file RangeSpec.h.
|
overrideprotectedvirtual |
Reads serialized representation of object from a buffer.
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized object remaining |
Implements Hypertable::Serializable.
Reimplemented in Hypertable::RangeSpecManaged.
Definition at line 152 of file RangeSpec.cc.
|
overrideprotectedvirtual |
Writes serialized representation of object to a buffer.
bufp | Address 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.
|
overrideprotectedvirtual |
Returns internal serialized length.
Implements Hypertable::Serializable.
Definition at line 127 of file RangeSpec.cc.
|
overrideprotectedvirtual |
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.
|
static |
Definition at line 41 of file RangeSpec.cc.
|
related |
Definition at line 166 of file RangeSpec.cc.
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.