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

Table identifier. More...

#include <TableIdentifier.h>

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

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)
 

Detailed Description

Table identifier.

Definition at line 42 of file TableIdentifier.h.

Constructor & Destructor Documentation

Hypertable::TableIdentifier::TableIdentifier ( )
inline

Definition at line 48 of file TableIdentifier.h.

Hypertable::TableIdentifier::TableIdentifier ( const char *  s)
inlineexplicit

Definition at line 49 of file TableIdentifier.h.

virtual Hypertable::TableIdentifier::~TableIdentifier ( )
inlinevirtual

Definition at line 50 of file TableIdentifier.h.

Member Function Documentation

void TableIdentifier::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::TableIdentifierManaged.

Definition at line 99 of file TableIdentifier.cc.

void TableIdentifier::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 ID path
vstr Generation

Implements Hypertable::Serializable.

Definition at line 94 of file TableIdentifier.cc.

size_t TableIdentifier::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 74 of file TableIdentifier.cc.

uint8_t TableIdentifier::encoding_version ( ) const
overrideprotectedvirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 70 of file TableIdentifier.cc.

int32_t Hypertable::TableIdentifier::index ( ) const
inline

Definition at line 60 of file TableIdentifier.h.

bool Hypertable::TableIdentifier::is_metadata ( ) const
inline

Definition at line 56 of file TableIdentifier.h.

bool Hypertable::TableIdentifier::is_system ( ) const
inline

Definition at line 57 of file TableIdentifier.h.

bool Hypertable::TableIdentifier::is_user ( ) const
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.

Friends And Related Function Documentation

ostream & operator<< ( ostream &  os,
const TableIdentifier tid 
)
related

Definition at line 112 of file TableIdentifier.cc.

Member Data Documentation

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.

const char * TableIdentifier::METADATA_ID = "0/0"
static

Definition at line 45 of file TableIdentifier.h.

const int TableIdentifier::METADATA_ID_LENGTH = 3
static

Definition at line 47 of file TableIdentifier.h.

const char * TableIdentifier::METADATA_NAME = "sys/METADATA"
static

Definition at line 46 of file TableIdentifier.h.


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