~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_row.h

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

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) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 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
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_CACHE_ROW_H
21
 
#define DRIZZLED_ITEM_CACHE_ROW_H
22
 
 
23
 
#include <stdint.h>
24
 
 
25
 
class Item_cache;
26
 
class Item;
27
 
class Send_field;
28
 
 
29
 
class Item_cache_row: public Item_cache
 
20
#pragma once
 
21
 
 
22
#include <drizzled/item/cache.h>
 
23
 
 
24
namespace drizzled {
 
25
 
 
26
class Item_cache_row : public Item_cache
30
27
{
31
28
  Item_cache  **values;
32
29
  uint32_t item_count;
40
37
    'allocate' used only in row transformer, to preallocate space for row
41
38
    cache.
42
39
  */
43
 
  bool allocate(uint32_t num);
 
40
  void allocate(uint32_t num);
44
41
  /*
45
42
    'setup' is needed only by row => it not called by simple row subselect
46
43
    (only by IN subselect (in subselect optimizer))
47
44
  */
48
 
  bool setup(Item *item);
49
 
  void store(Item *item);
 
45
  bool setup(Item*);
 
46
  void store(Item*);
50
47
  void illegal_method_call(const char * method_name);
51
 
  void make_field(Send_field *field);
 
48
  void make_field(SendField *field);
52
49
  double val_real();
53
50
  int64_t val_int();
54
51
  String *val_str(String *val);
55
 
  my_decimal *val_decimal(my_decimal *val);
 
52
  type::Decimal *val_decimal(type::Decimal *val);
56
53
 
57
54
  enum Item_result result_type() const;
58
55
 
67
64
 
68
65
};
69
66
 
70
 
#endif /* DRIZZLED_ITEM_CACHE_ROW_H */
 
67
} /* namespace drizzled */
 
68