drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::identifier::Table Class Reference
Inheritance diagram for drizzled::identifier::Table:
[legend]
Collaboration diagram for drizzled::identifier::Table:
[legend]

Classes

class  Key

Public Types

typedef message::Table::TableType Type

Public Member Functions

 Table (const drizzled::Table &table)
 Table (const identifier::Schema &schema, const std::string &table_name_arg, Type tmp_arg=message::Table::STANDARD)
 Table (const drizzled::identifier::Catalog &catalog, const std::string &db_arg, const std::string &table_name_arg, Type tmp_arg=message::Table::STANDARD)
 Table (const drizzled::identifier::Catalog &catalog, const std::string &schema_name_arg, const std::string &table_name_arg, const std::string &path_arg)
bool isTmp () const
bool isView () const
Type getType () const
virtual std::string getSQLPath () const
virtual const std::string & getPath () const
const std::string & getKeyPath () const
void setPath (const std::string &new_path)
const std::string & getTableName () const
void copyToTableMessage (message::Table &message) const
bool isValid () const
size_t getHashValue () const
const Key & getKey () const
bool compare (const std::string &arg) const
bool compare (const Schema &) const
Public Member Functions inherited from drizzled::identifier::Schema
 Schema (const drizzled::identifier::Catalog &catalog_arg, str_ref)
const std::string & getPath () const
const std::string & getSchemaName () const
const std::string & getCompareWithSchemaName () const
const drizzled::identifier::Catalog & getCatalog () const
const std::string & getCatalogName () const
virtual bool isSystem () const
bool compare (const std::string &arg) const
bool compare (const Schema &) const

Static Public Member Functions

static bool isView (message::Table::TableType arg)
static uint32_t filename_to_tablename (const char *from, char *to, uint32_t to_length)
static std::string build_table_filename (const drizzled::identifier::Table &, bool is_tmp)
static std::string build_tmptable_filename ()

Private Member Functions

void init ()
size_t getKeySize () const

Private Attributes

Type type
std::string path
std::string key_path
std::string table_name
Key key
size_t hash_value

Friends

bool operator< (const Table &left, const Table &right)
bool operator== (const Table &left, const Table &right)

Detailed Description

Definition at line 60 of file drizzled/identifier/table.h.

Member Typedef Documentation

◆ Type

typedef message::Table::TableType drizzled::identifier::Table::Type

Definition at line 63 of file drizzled/identifier/table.h.

Constructor & Destructor Documentation

◆ Table() [1/4]

drizzled::identifier::Table::Table ( const drizzled::Table & table)

Definition at line 192 of file drizzled/identifier/table.cc.

◆ Table() [2/4]

drizzled::identifier::Table::Table ( const identifier::Schema & schema,
const std::string & table_name_arg,
Type tmp_arg = message::Table::STANDARD )

Definition at line 206 of file drizzled/identifier/table.cc.

◆ Table() [3/4]

drizzled::identifier::Table::Table ( const drizzled::identifier::Catalog & catalog,
const std::string & db_arg,
const std::string & table_name_arg,
Type tmp_arg = message::Table::STANDARD )

Definition at line 216 of file drizzled/identifier/table.cc.

◆ Table() [4/4]

drizzled::identifier::Table::Table ( const drizzled::identifier::Catalog & catalog,
const std::string & schema_name_arg,
const std::string & table_name_arg,
const std::string & path_arg )

Definition at line 227 of file drizzled/identifier/table.cc.

Member Function Documentation

◆ build_table_filename()

std::string drizzled::identifier::Table::build_table_filename ( const drizzled::identifier::Table & table_identifier,
bool is_tmp )
static

Definition at line 185 of file drizzled/identifier/table.cc.

◆ build_tmptable_filename()

std::string drizzled::identifier::Table::build_tmptable_filename ( )
static

Definition at line 146 of file drizzled/identifier/table.cc.

◆ compare() [1/2]

bool Schema::compare ( const Schema & arg) const

Definition at line 84 of file drizzled/identifier/schema.cc.

◆ compare() [2/2]

bool Schema::compare ( const std::string & arg) const

Definition at line 83 of file drizzled/identifier/schema.cc.

◆ copyToTableMessage()

void drizzled::identifier::Table::copyToTableMessage ( message::Table & message) const

Definition at line 339 of file drizzled/identifier/table.cc.

◆ filename_to_tablename()

uint32_t drizzled::identifier::Table::filename_to_tablename ( const char * from,
char * to,
uint32_t to_length )
static

Definition at line 67 of file drizzled/identifier/table.cc.

◆ getHashValue()

size_t drizzled::identifier::Table::getHashValue ( ) const
inline

Definition at line 250 of file drizzled/identifier/table.h.

◆ getKey()

const Key & drizzled::identifier::Table::getKey ( ) const
inline

Definition at line 255 of file drizzled/identifier/table.h.

◆ getKeyPath()

const std::string & drizzled::identifier::Table::getKeyPath ( ) const

Definition at line 281 of file drizzled/identifier/table.cc.

◆ getKeySize()

size_t drizzled::identifier::Table::getKeySize ( ) const
inlineprivate

Definition at line 146 of file drizzled/identifier/table.h.

◆ getPath()

const std::string & drizzled::identifier::Table::getPath ( ) const
virtual

Definition at line 276 of file drizzled/identifier/table.cc.

◆ getSQLPath()

std::string drizzled::identifier::Table::getSQLPath ( ) const
virtual

Reimplemented from drizzled::identifier::Schema.

Definition at line 286 of file drizzled/identifier/table.cc.

◆ getTableName()

const std::string & drizzled::identifier::Table::getTableName ( ) const
inline

Definition at line 215 of file drizzled/identifier/table.h.

◆ getType()

Type drizzled::identifier::Table::getType ( ) const
inline

Definition at line 200 of file drizzled/identifier/table.h.

◆ init()

void drizzled::identifier::Table::init ( )
private

Definition at line 239 of file drizzled/identifier/table.cc.

◆ isTmp()

bool drizzled::identifier::Table::isTmp ( ) const
inline

Definition at line 171 of file drizzled/identifier/table.h.

◆ isValid()

bool drizzled::identifier::Table::isValid ( ) const
virtual

Reimplemented from drizzled::identifier::Schema.

Definition at line 304 of file drizzled/identifier/table.cc.

◆ isView() [1/2]

bool drizzled::identifier::Table::isView ( ) const
inline

Definition at line 195 of file drizzled/identifier/table.h.

◆ isView() [2/2]

bool drizzled::identifier::Table::isView ( message::Table::TableType arg)
inlinestatic

Definition at line 179 of file drizzled/identifier/table.h.

◆ setPath()

void drizzled::identifier::Table::setPath ( const std::string & new_path)
inline

Definition at line 210 of file drizzled/identifier/table.h.

◆ operator<

bool operator< ( const Table & left,
const Table & right )
friend

Definition at line 222 of file drizzled/identifier/table.h.

◆ operator==

bool operator== ( const Table & left,
const Table & right )
friend

Definition at line 232 of file drizzled/identifier/table.h.

Member Data Documentation

◆ hash_value

size_t drizzled::identifier::Table::hash_value
private

Definition at line 142 of file drizzled/identifier/table.h.

◆ key

Key drizzled::identifier::Table::key
private

Definition at line 141 of file drizzled/identifier/table.h.

◆ key_path

std::string drizzled::identifier::Table::key_path
private

Definition at line 139 of file drizzled/identifier/table.h.

◆ path

std::string drizzled::identifier::Table::path
private

Definition at line 138 of file drizzled/identifier/table.h.

◆ table_name

std::string drizzled::identifier::Table::table_name
private

Definition at line 140 of file drizzled/identifier/table.h.

◆ type

Type drizzled::identifier::Table::type
private

Definition at line 137 of file drizzled/identifier/table.h.


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