~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.h

  • Committer: patrick crews
  • Date: 2011-06-08 03:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: gleebix@gmail.com-20110608030227-updkyv2652zvfajc
Initial voodoo worked to give us a crashme mode.  Need docs still

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
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
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
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef PLUGIN_FUNCTION_ENGINE_CURSOR_H
22
 
#define PLUGIN_FUNCTION_ENGINE_CURSOR_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/cursor.h>
25
24
 
30
29
{
31
30
  drizzled::plugin::TableFunction *tool;
32
31
  drizzled::plugin::TableFunction::Generator *generator;
33
 
  size_t record_id;
34
 
  std::vector<unsigned char *> row_cache;
 
32
  size_t row_cache_position;
 
33
  std::vector<unsigned char> row_cache;
35
34
  drizzled::ha_rows estimate_of_rows;
36
35
  drizzled::ha_rows rows_returned;
37
36
 
38
37
  void wipeCache();
39
38
 
 
39
  std::vector <unsigned char> record_buffer; // for pack_row
 
40
  uint32_t max_row_length();
 
41
  unsigned int pack_row(const unsigned char *record);
 
42
 
40
43
public:
41
44
  FunctionCursor(drizzled::plugin::StorageEngine &engine,
42
45
                 drizzled::Table &table_arg);
83
86
  {}
84
87
};
85
88
 
86
 
#endif /* PLUGIN_FUNCTION_ENGINE_CURSOR_H */