~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.h

  • Committer: Monty Taylor
  • Date: 2010-10-21 23:10:12 UTC
  • mto: (1879.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1880.
  • Revision ID: mordred@inaugust.com-20101021231012-uhsebiqo23xi0ygy
Updated AUTHORS list with everyone from bzr logs.

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