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

Public Types

typedef std::shared_ptr< Shared > shared_ptr
typedef std::vector< shared_ptr > vector
Public Types inherited from drizzled::TableShare
typedef std::shared_ptr< TableShare > shared_ptr
typedef std::vector< shared_ptr > vector
typedef std::vector< Field * > Fields

Public Member Functions

 Shared (const identifier::Table::Type type_arg, const identifier::Table &identifier, char *path_arg=NULL, uint32_t path_length_arg=0)
 Shared (const identifier::Table &identifier, message::schema::shared_ptr schema_message)
 Shared (const identifier::Table &identifier)
void lock ()
void unlock ()
plugin::EventObserverList * getTableObservers ()
void setTableObservers (plugin::EventObserverList *observers)
virtual bool is_replicated () const
Public Member Functions inherited from drizzled::TableShare
 TableShare (const identifier::Table::Type type_arg)
 TableShare (const identifier::Table &identifier, const identifier::Table::Key &key)
 TableShare (const identifier::Table &identifier)
 TableShare (const identifier::Table::Type type_arg, const identifier::Table &identifier, const char *path_arg=NULL, uint32_t path_length_arg=0)
bool isTemporaryCategory () const
void setTableCategory (enum_table_category arg)
const Fields getFields () const
Fields getFields ()
Field ** getFields (bool)
void setFields (uint32_t arg)
uint32_t positionFields (Field **arg) const
void pushField (Field *arg)
Field * getTimestampField () const
void setTimestampField (Field *arg)
KeyInfo & getKeyInfo (uint32_t arg) const
size_t getNamedFieldSize () const
Field ** getNamedField (const std::string &arg)
uint32_t doesKeyNameExist (const std::string &arg) const
unsigned char * getDefaultValues ()
void resizeDefaultValues (size_t arg)
const char * getNormalizedPath () const
const char * getPath () const
const identifier::Table::Key & getCacheKey () const
size_t getCacheKeySize () const
str_ref getTableNameRef () const
const char * getTableName () const
str_ref getSchemaNameRef () const
const char * getSchemaName () const
const drizzled::identifier::Table & getTableIdentifier () const
uint64_t getVersion () const
void refreshVersion ()
void resetVersion ()
uint32_t sizeStoredRecord () const
uint32_t getRecordLength () const
void setRecordLength (uint32_t arg)
const Field_blob * getBlobFieldAt (uint32_t arg) const
message::Table::TableType getTableType () const
const std::string & getTableTypeAsString () const
message::Table * getTableMessage () const
void setTableMessage (const message::Table &arg)
const message::Table::Field & field (int32_t field_position) const
bool hasComment () const
const char * getComment ()
uint32_t getCommentLength () const
uint64_t getMaxRows () const
void setMaxRows (uint64_t arg)
bool fieldInPrimaryKey (Field *field) const
plugin::StorageEngine * db_type () const
plugin::StorageEngine * getEngine () const
identifier::Table::Type getType () const
uint32_t getTableCount () const
void incrementTableCount ()
uint32_t decrementTableCount ()
void setFieldSize (uint32_t arg)
uint32_t sizeFields () const
uint32_t sizeKeys () const
bool hasVariableWidth () const
void setVariableWidth ()
uint32_t getPrimaryKey () const
bool hasPrimaryKey () const
uint8_t sizeBlobPtr () const
void setIdentifier (const identifier::Table &identifier_arg)
int open_table_def (Session &session, const identifier::Table &identifier)
int open_table_from_share (Session *session, const identifier::Table &identifier, const char *alias, uint32_t db_stat, uint32_t ha_open_flags, Table &outparam)
bool parse_table_proto (Session &session, const message::Table &table)

Static Public Member Functions

static shared_ptr make_shared (Session *session, const identifier::Table &identifier, int &in_error)
static shared_ptr foundTableShare (shared_ptr share)
Static Public Member Functions inherited from drizzled::TableShare
static TableShare::shared_ptr getShareCreate (Session *, const identifier::Table &, int &error)

Private Attributes

boost::mutex mutex
drizzled::message::schema::shared_ptr _schema
plugin::EventObserverList * event_observers

Friends

void release (TableShare *share)
void release (TableShare::shared_ptr &share)

Additional Inherited Members

Public Attributes inherited from drizzled::TableShare
Field ** found_next_number_field
std::vector< uint > blob_field
const charset_info_st * table_charset
boost::dynamic_bitset all_set
uint32_t block_size
plugin::StorageEngine * storage_engine
uint32_t null_bytes
uint32_t last_null_bit_pos
uint32_t rec_buff_length
uint32_t keys
uint32_t key_parts
uint32_t max_key_length
uint32_t max_unique_length
uint32_t total_key_length
uint32_t uniques
uint32_t null_fields
uint32_t blob_fields
uint32_t db_create_options
uint32_t db_options_in_use
uint32_t db_record_offset
uint32_t rowid_field_offset
uint32_t next_number_index
uint32_t next_number_key_offset
uint32_t next_number_keypart
uint32_t error
uint32_t open_errno
uint32_t errarg
bool db_low_byte_first
key_map keys_in_use
key_map keys_for_keyread
Protected Member Functions inherited from drizzled::TableShare
void open_table_error (int pass_error, int db_errno, int pass_errarg)
Field * make_field (const message::Table::Field &pfield, unsigned char *ptr, uint32_t field_length, bool is_nullable, unsigned char *null_pos, unsigned char null_bit, uint8_t decimals, enum_field_types field_type, const charset_info_st *field_charset, Field::utype unireg_check, TYPELIB *interval, const char *field_name)
Field * make_field (const message::Table::Field &pfield, unsigned char *ptr, uint32_t field_length, bool is_nullable, unsigned char *null_pos, unsigned char null_bit, uint8_t decimals, enum_field_types field_type, const charset_info_st *field_charset, Field::utype unireg_check, TYPELIB *interval, const char *field_name, bool is_unsigned)

Detailed Description

Definition at line 35 of file shared.h.

Member Typedef Documentation

◆ shared_ptr

typedef std::shared_ptr<Shared> drizzled::table::instance::Shared::shared_ptr

Definition at line 41 of file shared.h.

◆ vector

typedef std::vector<shared_ptr> drizzled::table::instance::Shared::vector

Definition at line 42 of file shared.h.

Constructor & Destructor Documentation

◆ Shared() [1/3]

drizzled::table::instance::Shared::Shared ( const identifier::Table::Type type_arg,
const identifier::Table & identifier,
char * path_arg = NULL,
uint32_t path_length_arg = 0 )

Definition at line 34 of file shared.cc.

◆ Shared() [2/3]

drizzled::table::instance::Shared::Shared ( const identifier::Table & identifier,
message::schema::shared_ptr schema_message )

Definition at line 42 of file shared.cc.

◆ Shared() [3/3]

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

Definition at line 50 of file shared.cc.

◆ ~Shared()

drizzled::table::instance::Shared::~Shared ( )

Definition at line 156 of file shared.cc.

Member Function Documentation

◆ foundTableShare()

Shared::shared_ptr drizzled::table::instance::Shared::foundTableShare ( Shared::shared_ptr share)
static

Definition at line 69 of file shared.cc.

◆ getTableObservers()

plugin::EventObserverList * drizzled::table::instance::Shared::getTableObservers ( )
inlinevirtual

Reimplemented from drizzled::TableShare.

Definition at line 71 of file shared.h.

◆ is_replicated()

bool drizzled::table::instance::Shared::is_replicated ( ) const
virtual

Reimplemented from drizzled::TableShare.

Definition at line 56 of file shared.cc.

◆ lock()

void drizzled::table::instance::Shared::lock ( )
inlinevirtual

Reimplemented from drizzled::TableShare.

Definition at line 55 of file shared.h.

◆ make_shared()

Shared::shared_ptr drizzled::table::instance::Shared::make_shared ( Session * session,
const identifier::Table & identifier,
int & in_error )
static

Definition at line 113 of file shared.cc.

◆ setTableObservers()

void drizzled::table::instance::Shared::setTableObservers ( plugin::EventObserverList * observers)
inlinevirtual

Reimplemented from drizzled::TableShare.

Definition at line 76 of file shared.h.

◆ unlock()

void drizzled::table::instance::Shared::unlock ( )
inlinevirtual

Reimplemented from drizzled::TableShare.

Definition at line 60 of file shared.h.

◆ release [1/2]

void release ( TableShare * share)
friend

Definition at line 179 of file shared.cc.

◆ release [2/2]

void release ( TableShare::shared_ptr & share)
friend

Definition at line 197 of file shared.cc.

Member Data Documentation

◆ _schema

drizzled::message::schema::shared_ptr drizzled::table::instance::Shared::_schema
private

Definition at line 85 of file shared.h.

◆ event_observers

plugin::EventObserverList* drizzled::table::instance::Shared::event_observers
private

Definition at line 91 of file shared.h.

◆ mutex

boost::mutex drizzled::table::instance::Shared::mutex
private

Definition at line 84 of file shared.h.


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