~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Brian Aker
  • Date: 2011-02-04 09:29:39 UTC
  • mfrom: (2139.3.6 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2144.
  • Revision ID: brian@tangent.org-20110204092939-nlwrimamw0fxxhgl
Main bit of this patch is that Inno now just uses the identifier so we only
have one spot to make changes for paths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_CURSOR_H
21
21
#define DRIZZLED_CURSOR_H
22
22
 
23
 
#include <drizzled/atomics.h>
24
 
#include <drizzled/definitions.h>
 
23
#include <drizzled/xid.h>
25
24
#include <drizzled/discrete_interval.h>
26
 
#include <drizzled/error_t.h>
27
 
#include <drizzled/ha_statistics.h>
28
 
#include <drizzled/handler_structs.h>
29
25
#include <drizzled/identifier.h>
 
26
#include <drizzled/definitions.h>
30
27
#include <drizzled/key_map.h>
31
 
#include <drizzled/message/table.h>
 
28
 
 
29
/* Definitions for parameters to do with Cursor-routines */
 
30
 
 
31
#include <drizzled/thr_lock.h>
 
32
#include <drizzled/sql_string.h>
32
33
#include <drizzled/sql_list.h>
33
 
#include <drizzled/thr_lock.h>
34
 
#include <drizzled/xid.h>
 
34
#include <drizzled/plugin/storage_engine.h>
 
35
#include <drizzled/handler_structs.h>
 
36
#include <drizzled/ha_statistics.h>
 
37
#include <drizzled/atomics.h>
 
38
 
 
39
#include <drizzled/message/table.pb.h>
35
40
 
36
41
#include <bitset>
37
42
#include <algorithm>
38
43
 
39
 
#include <drizzled/visibility.h>
 
44
#include "drizzled/visibility.h"
40
45
 
41
46
namespace drizzled
42
47
{
45
50
 
46
51
typedef std::bitset<HA_MAX_ALTER_FLAGS> HA_ALTER_FLAGS;
47
52
 
48
 
class AlterInfo;
49
 
class CreateField;
 
53
extern uint64_t refresh_version;  /* Increments on each reload */
 
54
 
 
55
class Table;
 
56
class TableList;
 
57
class TableShare;
 
58
class Select_Lex_Unit;
50
59
class ForeignKeyInfo;
 
60
struct Order;
 
61
 
51
62
class Item;
52
 
class Item_ident;
 
63
 
53
64
class LEX;
54
65
class Select_Lex;
55
 
class Select_Lex_Unit;
56
 
class String;
57
 
class Table;
58
 
class TableList;
59
 
class TableShare;
 
66
class AlterInfo;
60
67
class select_result;
 
68
class CreateField;
61
69
class sys_var_str;
62
 
struct Order;
 
70
class Item_ident;
63
71
 
64
72
typedef List<Item> List_item;
65
73
extern KEY_CREATE_INFO default_key_create_info;
69
77
 
70
78
typedef struct system_status_var system_status_var;
71
79
 
72
 
namespace optimizer { class CostVector; }
73
 
namespace plugin { class StorageEngine; }
 
80
namespace optimizer
 
81
{
 
82
  class CostVector;
 
83
}
74
84
 
75
85
/*
76
86
  bitmap with first N+1 bits set
205
215
  }
206
216
 
207
217
  /**
208
 
    Used by SHOW TABLE STATUS to get the current auto_inc from the engine
209
 
  */
210
 
  uint64_t getAutoIncrement()
211
 
  {
212
 
    return stats.auto_increment_value;
213
 
  }
214
 
 
215
 
  /**
216
218
    insert id for the current row (*autogenerated*; if not
217
219
    autogenerated, it's 0).
218
220
    At first successful insertion, this variable is stored into
272
274
 
273
275
  /* Estimates calculation */
274
276
  virtual double scan_time(void)
275
 
  { return static_cast<double>(stats.data_file_length) / IO_SIZE + 2; }
 
277
  { return uint64_t2double(stats.data_file_length) / IO_SIZE + 2; }
276
278
  virtual double read_time(uint32_t, uint32_t ranges, ha_rows rows)
277
 
  { return ranges + rows; }
 
279
  { return rows2double(ranges+rows); }
278
280
 
279
281
  virtual double index_only_read_time(uint32_t keynr, double records);
280
282