~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "drizzled/atomics.h"
37
37
#include "drizzled/query_id.h"
38
38
 
 
39
namespace drizzled
 
40
{
 
41
 
39
42
class Item;
40
43
class Item_subselect;
41
44
class Select_Lex_Unit;
234
237
  uint32_t quick_key_parts[MAX_KEY];
235
238
  uint32_t quick_n_ranges[MAX_KEY];
236
239
 
237
 
  drizzled::memory::Root mem_root;
 
240
  memory::Root mem_root;
238
241
  filesort_info_st sort;
239
242
 
240
243
  Table();
271
274
    return s->storage_engine->index_flags(s->key_info[idx].algorithm);
272
275
  }
273
276
 
274
 
  inline drizzled::plugin::StorageEngine *getEngine() const     /* table_type for handler */
 
277
  inline plugin::StorageEngine *getEngine() const       /* table_type for handler */
275
278
  {
276
279
    return s->storage_engine;
277
280
  }
278
281
 
279
282
  /* For TMP tables, should be pulled out as a class */
280
 
  void updateCreateInfo(drizzled::message::Table *table_proto);
 
283
  void updateCreateInfo(message::Table *table_proto);
281
284
  void setup_tmp_table_column_bitmaps(unsigned char *bitmaps);
282
285
  bool create_myisam_tmp_table(KEY *keyinfo,
283
286
                               MI_COLUMNDEF *start_recinfo,
490
493
class select_union;
491
494
class Tmp_Table_Param;
492
495
 
493
 
typedef struct st_changed_table_list
494
 
{
495
 
  struct        st_changed_table_list *next;
496
 
  char          *key;
497
 
  uint32_t key_length;
498
 
} CHANGED_TableList;
499
 
 
500
496
struct open_table_list_st
501
497
{
502
498
  std::string   db;
526
522
int test_if_number(char *str,int *res,bool allow_wildcards);
527
523
void change_byte(unsigned char *,uint,char,char);
528
524
 
529
 
namespace drizzled { namespace optimizer { class SqlSelect; } }
 
525
namespace optimizer { class SqlSelect; }
530
526
 
531
527
ha_rows filesort(Session *session,
532
528
                 Table *form,
533
 
                 struct st_sort_field *sortorder,
534
 
                             uint32_t s_length,
535
 
                 drizzled::optimizer::SqlSelect *select,
536
 
                             ha_rows max_rows,
 
529
                 st_sort_field *sortorder,
 
530
                 uint32_t s_length,
 
531
                 optimizer::SqlSelect *select,
 
532
                 ha_rows max_rows,
537
533
                 bool sort_positions,
538
534
                 ha_rows *examined_rows);
539
535
 
541
537
void change_double_for_sort(double nr,unsigned char *to);
542
538
double my_double_round(double value, int64_t dec, bool dec_unsigned,
543
539
                       bool truncate);
544
 
int get_quick_record(drizzled::optimizer::SqlSelect *select);
 
540
int get_quick_record(optimizer::SqlSelect *select);
545
541
 
546
542
void find_date(char *pos,uint32_t *vek,uint32_t flag);
547
543
TYPELIB *convert_strings_to_array_type(char * *typelibs, char * *end);
548
 
TYPELIB *typelib(drizzled::memory::Root *mem_root, List<String> &strings);
 
544
TYPELIB *typelib(memory::Root *mem_root, List<String> &strings);
549
545
ulong get_form_pos(int file, unsigned char *head, TYPELIB *save_names);
550
546
ulong next_io_size(ulong pos);
551
547
void append_unescaped(String *res, const char *pos, uint32_t length);
555
551
bool check_db_name(LEX_STRING *org_name);
556
552
bool check_table_name(const char *name, uint32_t length);
557
553
 
 
554
} /* namespace drizzled */
 
555
 
558
556
#endif /* DRIZZLED_TABLE_H */