~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler_structs.h

  • Committer: Monty Taylor
  • Date: 2010-03-25 22:03:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1408.
  • Revision ID: mordred@inaugust.com-20100325220321-bf5vs8tryb4a8ssh
Updated the search for libmemcached.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
32
32
#endif
33
33
 
34
34
#include <drizzled/base.h>
 
35
#include <drizzled/structs.h>
35
36
#include <drizzled/definitions.h>
36
37
#include <drizzled/lex_string.h>
37
 
#include <drizzled/structs.h>
 
38
#include "drizzled/global_charset_info.h"
38
39
 
39
40
namespace drizzled
40
41
{
41
42
 
42
 
struct charset_info_st;
 
43
struct st_key;
 
44
typedef struct st_key KEY;
 
45
typedef struct st_key_cache KEY_CACHE;
 
46
 
43
47
 
44
48
namespace plugin
45
49
{
48
52
 
49
53
typedef struct st_ha_create_information
50
54
{
51
 
  const charset_info_st *table_charset, *default_table_charset;
 
55
  const CHARSET_INFO *table_charset, *default_table_charset;
52
56
  const char *alias;
53
57
  uint64_t auto_increment_value;
54
58
  uint32_t table_options;
55
59
  uint32_t used_fields;
 
60
  enum row_type row_type;
56
61
  plugin::StorageEngine *db_type;
57
62
  bool table_existed;                   /* 1 in create if table existed */
58
 
 
59
 
  st_ha_create_information() :
60
 
    table_charset(0),
61
 
    default_table_charset(0),
62
 
    alias(0),
63
 
    auto_increment_value(0),
64
 
    table_options(0),
65
 
    used_fields(0),
66
 
    db_type(0),
67
 
    table_existed(0)
68
 
  { }
69
63
} HA_CREATE_INFO;
70
64
 
71
65
typedef struct st_ha_alter_information
72
66
{
73
 
  KeyInfo  *key_info_buffer;
 
67
  KEY  *key_info_buffer;
74
68
  uint32_t key_count;
75
69
  uint32_t index_drop_count;
76
70
  uint32_t *index_drop_buffer;
77
71
  uint32_t index_add_count;
78
72
  uint32_t *index_add_buffer;
79
73
  void *data;
80
 
 
81
 
  st_ha_alter_information() :
82
 
    key_info_buffer(0),
83
 
    key_count(0),
84
 
    index_drop_count(0),
85
 
    index_drop_buffer(0),
86
 
    index_add_count(0),
87
 
    index_add_buffer(0),
88
 
    data(0)
89
 
  { }
90
 
 
91
74
} HA_ALTER_INFO;
92
75
 
93
76
 
94
 
typedef struct key_create_information_st
 
77
typedef struct st_key_create_information
95
78
{
96
79
  enum ha_key_alg algorithm;
97
80
  uint32_t block_size;
137
120
  uint32_t (*next) (range_seq_t seq, KEY_MULTI_RANGE *range);
138
121
} RANGE_SEQ_IF;
139
122
 
 
123
/*
 
124
  This is a buffer area that the handler can use to store rows.
 
125
  'end_of_used_area' should be kept updated after calls to
 
126
  read-functions so that other parts of the code can use the
 
127
  remaining area (until next read calls is issued).
 
128
*/
 
129
 
 
130
typedef struct st_handler_buffer
 
131
{
 
132
  unsigned char *buffer;         /* Buffer one can start using */
 
133
  unsigned char *buffer_end;     /* End of buffer */
 
134
  unsigned char *end_of_used_area;     /* End of area that was used by handler */
 
135
} HANDLER_BUFFER;
 
136
 
140
137
} /* namespace drizzled */
141
138
 
142
139
#endif /* DRIZZLED_HANDLER_STRUCTS_H */