#include <TableIdentifier.h>
Public Member Functions | |
TableIdentifier () | |
TableIdentifier (const char *s) | |
virtual | ~TableIdentifier () |
bool | operator== (const TableIdentifier &other) const |
bool | operator!= (const TableIdentifier &other) const |
bool | operator< (const TableIdentifier &other) const |
bool | is_metadata () const |
bool | is_system () const |
bool | is_user () const |
int32_t | index () 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... | |
Public Attributes | |
const char * | id |
int64_t | generation |
Static Public Attributes | |
static const char * | METADATA_ID = "0/0" |
static const char * | METADATA_NAME = "sys/METADATA" |
static const int | METADATA_ID_LENGTH = 3 |
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 TableIdentifier &tid) |
Table identifier.
Definition at line 42 of file TableIdentifier.h.
|
inline |
Definition at line 48 of file TableIdentifier.h.
|
inlineexplicit |
Definition at line 49 of file TableIdentifier.h.
|
inlinevirtual |
Definition at line 50 of file TableIdentifier.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::TableIdentifierManaged.
Definition at line 99 of file TableIdentifier.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 | ID path |
vstr | Generation |
Implements Hypertable::Serializable.
Definition at line 94 of file TableIdentifier.cc.
|
overrideprotectedvirtual |
Returns internal serialized length.
Implements Hypertable::Serializable.
Definition at line 74 of file TableIdentifier.cc.
|
overrideprotectedvirtual |
Returns encoding version.
Implements Hypertable::Serializable.
Definition at line 70 of file TableIdentifier.cc.
|
inline |
Definition at line 60 of file TableIdentifier.h.
|
inline |
Definition at line 56 of file TableIdentifier.h.
|
inline |
Definition at line 57 of file TableIdentifier.h.
|
inline |
Definition at line 58 of file TableIdentifier.h.
bool TableIdentifier::operator!= | ( | const TableIdentifier & | other | ) | const |
Definition at line 51 of file TableIdentifier.cc.
bool TableIdentifier::operator< | ( | const TableIdentifier & | other | ) | const |
Definition at line 55 of file TableIdentifier.cc.
bool TableIdentifier::operator== | ( | const TableIdentifier & | other | ) | const |
Definition at line 40 of file TableIdentifier.cc.
|
related |
Definition at line 112 of file TableIdentifier.cc.
int64_t Hypertable::TableIdentifier::generation |
Definition at line 69 of file TableIdentifier.h.
const char* Hypertable::TableIdentifier::id |
Definition at line 68 of file TableIdentifier.h.
|
static |
Definition at line 45 of file TableIdentifier.h.
|
static |
Definition at line 47 of file TableIdentifier.h.
|
static |
Definition at line 46 of file TableIdentifier.h.