Drizzled Public API Documentation

drizzled::table::instance::Shared Class Reference
Inheritance diagram for drizzled::table::instance::Shared:
drizzled::TableShare

Public Types

typedef boost::shared_ptr< Sharedshared_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::EventObserverListgetTableObservers ()
 
void setTableObservers (plugin::EventObserverList *observers)
 
virtual bool is_replicated () const
 
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)
 
FieldgetTimestampField () const
 
void setTimestampField (Field *arg)
 
KeyInfogetKeyInfo (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::KeygetCacheKey () const
 
size_t getCacheKeySize () const
 
str_ref getTableNameRef () const
 
const char * getTableName () const
 
str_ref getSchemaNameRef () const
 
const char * getSchemaName () const
 
const drizzled::identifier::TablegetTableIdentifier () const
 
uint64_t getVersion () const
 
void refreshVersion ()
 
void resetVersion ()
 
uint32_t sizeStoredRecord () const
 
uint32_t getRecordLength () const
 
void setRecordLength (uint32_t arg)
 
const Field_blobgetBlobFieldAt (uint32_t arg) const
 
message::Table::TableType getTableType () const
 
const std::string & getTableTypeAsString () const
 
message::TablegetTableMessage () const
 
void setTableMessage (const message::Table &arg)
 
const message::Table::Fieldfield (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::StorageEnginedb_type () const
 
plugin::StorageEnginegetEngine () 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 TableShare::shared_ptr getShareCreate (Session *, const identifier::Table &, int &error)
 

Public Attributes

Field ** found_next_number_field
 
std::vector< uint > blob_field
 
const charset_info_sttable_charset
 
boost::dynamic_bitset all_set
 
uint32_t block_size
 
plugin::StorageEnginestorage_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

void open_table_error (int pass_error, int db_errno, int pass_errarg)
 
Fieldmake_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)
 
Fieldmake_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)
 

Private Attributes

boost::mutex mutex
 
drizzled::message::schema::shared_ptr _schema
 
plugin::EventObserverListevent_observers
 

Friends

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

Detailed Description

Definition at line 35 of file shared.h.

Member Function Documentation

bool drizzled::TableShare::fieldInPrimaryKey ( Field in_field) const
inherited

Returns true if the supplied Field object is part of the table's primary key.

Todo:

Precache this stuff....

Definition at line 205 of file base.cc.

References dict_index_struct::indexes.

Referenced by drizzled::TransactionServices::deleteRecord(), drizzled::TransactionServices::setDeleteHeader(), drizzled::TransactionServices::setUpdateHeader(), and drizzled::TransactionServices::updateRecord().


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