~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.h

  • Committer: Brian Aker
  • Date: 2010-09-15 20:24:31 UTC
  • mto: (1766.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1767.
  • Revision ID: brian@tangent.org-20100915202431-wbrrl4vg6rzjvdiu
Adding opt for optional schedulers and making them --plugin-add only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
 
17
17
 
18
18
/* class for the the heap Cursor */
19
19
 
20
 
#ifndef PLUGIN_MEMORY_HA_HEAP_H
21
 
#define PLUGIN_MEMORY_HA_HEAP_H
 
20
#ifndef PLUGIN_HEAP_HA_HEAP_H
 
21
#define PLUGIN_HEAP_HA_HEAP_H
22
22
 
23
23
#include <drizzled/cursor.h>
24
24
#include <drizzled/thr_lock.h>
35
35
  uint32_t    key_stat_version;
36
36
  bool internal_table;
37
37
public:
38
 
  ha_heap(drizzled::plugin::StorageEngine &engine, drizzled::Table &table);
 
38
  ha_heap(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table);
39
39
  ~ha_heap() {}
40
40
  Cursor *clone(drizzled::memory::Root *mem_root);
41
41
 
47
47
                   drizzled::ha_rows rows)
48
48
  { return (double) rows /  20.0+1; }
49
49
 
50
 
  int doOpen(const drizzled::TableIdentifier &identifier, int mode, uint32_t test_if_locked);
 
50
  int open(const char *name, int mode, uint32_t test_if_locked);
51
51
  int close(void);
52
52
  void set_keys_for_scanning(void);
53
53
  int doInsertRecord(unsigned char * buf);
96
96
  void update_key_stats();
97
97
};
98
98
 
99
 
#endif /* PLUGIN_MEMORY_HA_HEAP_H */
 
99
#endif /* PLUGIN_HEAP_HA_HEAP_H */