~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Lee Bieber
  • Date: 2011-03-18 04:10:25 UTC
  • mfrom: (2241.1.2 build)
  • Revision ID: kalebral@gmail.com-20110318041025-1xoj1azy6zobhnbm
Merge Stewart - refactoring of default values
Merge Olaf - more refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_CURSOR_H
21
 
#define DRIZZLED_CURSOR_H
 
20
#pragma once
22
21
 
23
 
#include <drizzled/xid.h>
 
22
#include <drizzled/atomics.h>
 
23
#include <drizzled/definitions.h>
24
24
#include <drizzled/discrete_interval.h>
 
25
#include <drizzled/error_t.h>
 
26
#include <drizzled/ha_statistics.h>
 
27
#include <drizzled/handler_structs.h>
25
28
#include <drizzled/identifier.h>
26
 
#include <drizzled/definitions.h>
27
29
#include <drizzled/key_map.h>
28
 
#include <drizzled/error_t.h>
29
 
 
30
 
/* Definitions for parameters to do with Cursor-routines */
31
 
 
 
30
#include <drizzled/message/table.h>
 
31
#include <drizzled/sql_list.h>
32
32
#include <drizzled/thr_lock.h>
33
 
#include <drizzled/sql_list.h>
34
 
#include <drizzled/handler_structs.h>
35
 
#include <drizzled/ha_statistics.h>
36
 
#include <drizzled/atomics.h>
37
 
 
38
 
#include <drizzled/message/table.h>
39
33
 
40
34
#include <bitset>
41
35
#include <algorithm>
42
36
 
43
 
#include "drizzled/visibility.h"
 
37
#include <drizzled/visibility.h>
44
38
 
45
39
namespace drizzled
46
40
{
276
270
 
277
271
  /* Estimates calculation */
278
272
  virtual double scan_time(void)
279
 
  { return uint64_t2double(stats.data_file_length) / IO_SIZE + 2; }
 
273
  { return static_cast<double>(stats.data_file_length) / IO_SIZE + 2; }
280
274
  virtual double read_time(uint32_t, uint32_t ranges, ha_rows rows)
281
 
  { return rows2double(ranges+rows); }
 
275
  { return ranges + rows; }
282
276
 
283
277
  virtual double index_only_read_time(uint32_t keynr, double records);
284
278
 
751
745
 
752
746
} /* namespace drizzled */
753
747
 
754
 
#endif /* DRIZZLED_CURSOR_H */