~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/instance/base.h

  • Committer: Brian Aker
  • Date: 2011-01-17 06:41:24 UTC
  • mfrom: (2087.4.2 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2089.
  • Revision ID: brian@gir-3-20110117064124-cytq2o0d5h5c6fi2
Merge in identifier naming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
  typedef boost::shared_ptr<TableShare> shared_ptr;
78
78
  typedef std::vector <shared_ptr> vector;
79
79
 
80
 
  TableShare(const TableIdentifier::Type type_arg);
81
 
 
82
 
  TableShare(const TableIdentifier &identifier, const TableIdentifier::Key &key); // Used by placeholder
83
 
 
84
 
  TableShare(const TableIdentifier &identifier); // Just used during createTable()
85
 
 
86
 
  TableShare(const TableIdentifier::Type type_arg,
87
 
             const TableIdentifier &identifier,
 
80
  TableShare(const identifier::Table::Type type_arg);
 
81
 
 
82
  TableShare(const identifier::Table &identifier, const identifier::Table::Key &key); // Used by placeholder
 
83
 
 
84
  TableShare(const identifier::Table &identifier); // Just used during createTable()
 
85
 
 
86
  TableShare(const identifier::Table::Type type_arg,
 
87
             const identifier::Table &identifier,
88
88
             char *path_arg= NULL, uint32_t path_length_arg= 0); // Shares for cache
89
89
 
90
90
  virtual ~TableShare();
278
278
    To ensure this one can use set_table_cache() methods.
279
279
  */
280
280
private:
281
 
  TableIdentifier::Key private_key_for_cache; // This will not exist in the final design.
 
281
  identifier::Table::Key private_key_for_cache; // This will not exist in the final design.
282
282
  std::vector<char> private_normalized_path; // This will not exist in the final design.
283
283
  LEX_STRING db;                        /* Pointer to db */
284
284
  LEX_STRING table_name;                /* Table name (for open) */
296
296
    return path.str;
297
297
  }
298
298
 
299
 
  const TableIdentifier::Key& getCacheKey() const // This should never be called when we aren't looking at a cache.
 
299
  const identifier::Table::Key& getCacheKey() const // This should never be called when we aren't looking at a cache.
300
300
  {
301
301
    assert(private_key_for_cache.size());
302
302
    return private_key_for_cache;
495
495
  }
496
496
 
497
497
private:
498
 
  TableIdentifier::Type tmp_table;
 
498
  identifier::Table::Type tmp_table;
499
499
public:
500
500
 
501
 
  TableIdentifier::Type getType() const
 
501
  identifier::Table::Type getType() const
502
502
  {
503
503
    return tmp_table;
504
504
  }
632
632
    NOTES
633
633
  */
634
634
 
635
 
  void setIdentifier(const TableIdentifier &identifier_arg);
 
635
  void setIdentifier(const identifier::Table &identifier_arg);
636
636
 
637
637
  /*
638
638
    Initialize share for temporary tables
658
658
  void open_table_error(int pass_error, int db_errno, int pass_errarg);
659
659
 
660
660
  static TableShare::shared_ptr getShareCreate(Session *session, 
661
 
                                               const TableIdentifier &identifier,
 
661
                                               const identifier::Table &identifier,
662
662
                                               int &error);
663
663
 
664
664
  friend std::ostream& operator<<(std::ostream& output, const TableShare &share)
707
707
                    bool is_unsigned);
708
708
 
709
709
public:
710
 
  int open_table_def(Session& session, const TableIdentifier &identifier);
 
710
  int open_table_def(Session& session, const identifier::Table &identifier);
711
711
 
712
712
  int open_table_from_share(Session *session,
713
 
                            const TableIdentifier &identifier,
 
713
                            const identifier::Table &identifier,
714
714
                            const char *alias,
715
715
                            uint32_t db_stat, uint32_t ha_open_flags,
716
716
                            Table &outparam);
719
719
                                  const char *alias,
720
720
                                  uint32_t db_stat,
721
721
                                  Table &outparam);
722
 
  int open_table_cursor_inner(const TableIdentifier &identifier,
 
722
  int open_table_cursor_inner(const identifier::Table &identifier,
723
723
                              uint32_t db_stat, uint32_t ha_open_flags,
724
724
                              Table &outparam,
725
725
                              bool &error_reported);
726
726
public:
727
727
  int parse_table_proto(Session& session, message::Table &table);
 
728
 
728
729
private:
729
730
  int inner_parse_table_proto(Session& session, message::Table &table);
730
731
};