~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
merge lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 */