~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.h

  • Committer: Stewart Smith
  • Date: 2010-03-02 06:41:59 UTC
  • mto: (1309.2.13 build)
  • mto: This revision was merged to the branch mainline in revision 1318.
  • Revision ID: stewart@flamingspork.com-20100302064159-gktw6hcbs3u0fflm
move Item_result out to its own header file and out of common.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/cursor.h>
25
25
 
26
26
#include <plugin/function_engine/function.h>
27
 
#include <drizzled/base.h>
28
27
 
29
28
class FunctionCursor: public drizzled::Cursor
30
29
{
35
34
  drizzled::ha_rows estimate_of_rows;
36
35
  drizzled::ha_rows rows_returned;
37
36
 
38
 
  void wipeCache();
39
 
 
40
37
public:
41
38
  FunctionCursor(drizzled::plugin::StorageEngine &engine,
42
 
                 drizzled::Table &table_arg);
 
39
                 drizzled::TableShare &table_arg);
43
40
  ~FunctionCursor() {}
44
41
 
45
42
  int open(const char *name, int mode, uint32_t test_if_locked);
46
43
 
47
44
  int close(void);
48
45
 
49
 
  int reset()
50
 
  {
51
 
    return extra(drizzled::HA_EXTRA_RESET_STATE);
52
 
  }
53
 
 
54
 
  int doStartTableScan(bool scan);
 
46
  int rnd_init(bool scan);
55
47
 
56
48
  /* get the next row and copy it into buf */
57
49
  int rnd_next(unsigned char *buf);
59
51
  /* locate row pointed to by pos, copy it into buf */
60
52
  int rnd_pos(unsigned char *buf, unsigned char *pos);
61
53
 
62
 
  int doEndTableScan();
63
 
 
64
 
  int extra(enum drizzled::ha_extra_function);
 
54
  int rnd_end();
65
55
 
66
56
  /* record position of a record for reordering */
67
57
  void position(const unsigned char *record);
75
65
  {
76
66
    return estimate_of_rows;
77
67
  }
78
 
 
79
 
  void get_auto_increment(uint64_t, uint64_t,
80
 
                          uint64_t,
81
 
                          uint64_t *,
82
 
                          uint64_t *)
83
 
  {}
84
68
};
85
69
 
86
70
#endif /* PLUGIN_FUNCTION_ENGINE_CURSOR_H */