~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: tdavies
  • Date: 2010-10-10 05:31:41 UTC
  • mto: (1827.1.3 trunk-drizzle)
  • mto: This revision was merged to the branch mainline in revision 1829.
  • Revision ID: tdavies@molly-20101010053141-7rbcb8fe8a6xxrn8
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/definitions.h>
25
25
#include <drizzled/plugin.h>
26
26
#include <drizzled/handler_structs.h>
27
 
#include <drizzled/message.h>
28
 
#include <drizzled/message/cache.h>
 
27
#include <drizzled/message/schema.pb.h>
 
28
#include <drizzled/message/table.pb.h>
29
29
#include "drizzled/plugin/plugin.h"
30
30
#include "drizzled/sql_string.h"
31
31
#include "drizzled/identifier.h"
252
252
  {
253
253
    return 0;
254
254
  }
255
 
  virtual Cursor *create(Table &)= 0;
 
255
  virtual Cursor *create(TableShare &)= 0;
256
256
  /* args: path */
257
257
  virtual bool flush_logs() { return false; }
258
258
  virtual bool show_status(Session *, stat_print_fn *, enum ha_stat_type)
288
288
 
289
289
  virtual void doGetTableIdentifiers(CachedDirectory &directory,
290
290
                                     const drizzled::SchemaIdentifier &schema_identifier,
291
 
                                     TableIdentifier::vector &set_of_identifiers)= 0;
 
291
                                     TableIdentifiers &set_of_identifiers)= 0;
292
292
 
293
293
  virtual int doDropTable(Session &session,
294
294
                          const drizzled::TableIdentifier &identifier)= 0;
299
299
 
300
300
  static int getTableDefinition(Session& session,
301
301
                                const drizzled::TableIdentifier &identifier,
302
 
                                message::table::shared_ptr &table_proto,
 
302
                                message::Table &table_proto,
303
303
                                bool include_temporary_tables= true);
304
304
  static bool doesTableExist(Session &session,
305
305
                             const drizzled::TableIdentifier &identifier,
320
320
                       const drizzled::TableIdentifier &identifier);
321
321
  static void getIdentifiers(Session &session,
322
322
                             const SchemaIdentifier &schema_identifier,
323
 
                             TableIdentifier::vector &set_of_identifiers);
 
323
                             TableIdentifiers &set_of_identifiers);
324
324
 
325
325
  // Check to see if any SE objects to creation.
326
326
  static bool canCreateTable(const drizzled::TableIdentifier &identifier);
328
328
  { (void)identifier;  return true; }
329
329
 
330
330
  // @note All schema methods defined here
331
 
  static void getIdentifiers(Session &session, SchemaIdentifier::vector &schemas);
332
 
  static bool getSchemaDefinition(const drizzled::TableIdentifier &identifier, message::schema::shared_ptr &proto);
333
 
  static bool getSchemaDefinition(const drizzled::SchemaIdentifier &identifier, message::schema::shared_ptr &proto);
 
331
  static void getIdentifiers(Session &session, SchemaIdentifiers &schemas);
 
332
  static bool getSchemaDefinition(const drizzled::TableIdentifier &identifier, message::Schema &proto);
 
333
  static bool getSchemaDefinition(const drizzled::SchemaIdentifier &identifier, message::Schema &proto);
334
334
  static bool doesSchemaExist(const drizzled::SchemaIdentifier &identifier);
335
335
  static const CHARSET_INFO *getSchemaCollation(const drizzled::SchemaIdentifier &identifier);
336
336
  static bool createSchema(const drizzled::message::Schema &schema_message);
338
338
  static bool alterSchema(const drizzled::message::Schema &schema_message);
339
339
 
340
340
  // @note make private/protected
341
 
  virtual void doGetSchemaIdentifiers(SchemaIdentifier::vector&)
 
341
  virtual void doGetSchemaIdentifiers(SchemaIdentifiers&)
342
342
  { }
343
343
 
344
 
  virtual bool doGetSchemaDefinition(const drizzled::SchemaIdentifier&, drizzled::message::schema::shared_ptr&)
 
344
  virtual bool doGetSchemaDefinition(const drizzled::SchemaIdentifier&, drizzled::message::Schema&)
345
345
  { 
346
346
    return false; 
347
347
  }
366
366
 
367
367
  static void removeLostTemporaryTables(Session &session, const char *directory);
368
368
 
369
 
  Cursor *getCursor(Table &share);
 
369
  Cursor *getCursor(TableShare &share);
370
370
 
371
371
  uint32_t max_record_length() const
372
372
  { return std::min((unsigned int)HA_MAX_REC_LENGTH, max_supported_record_length()); }