~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.h

  • Committer: Joe Daly
  • Date: 2010-05-21 02:16:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1555.
  • Revision ID: skinny.moey@gmail.com-20100521021656-bx6piitfh77jnl28
add statistics_variables.h

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) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 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
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
46
  int doStartTableScan(bool scan);
55
47
 
56
48
  /* get the next row and copy it into buf */
61
53
 
62
54
  int doEndTableScan();
63
55
 
64
 
  int extra(enum drizzled::ha_extra_function);
65
 
 
66
56
  /* record position of a record for reordering */
67
57
  void position(const unsigned char *record);
68
58