851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
1 |
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3 |
*
|
|
1999.6.1
by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file |
4 |
* Copyright (C) 2008 Sun Microsystems, Inc.
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; version 2 of the License.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 |
*/
|
|
19 |
||
20 |
||
21 |
#ifndef DRIZZLED_TMP_TABLE_PARAM_H
|
|
22 |
#define DRIZZLED_TMP_TABLE_PARAM_H
|
|
23 |
||
2154.2.18
by Brian Aker
Merge in all changes for include files. |
24 |
#include <plugin/myisam/myisam.h> |
25 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
26 |
namespace drizzled |
27 |
{
|
|
28 |
||
2154.2.18
by Brian Aker
Merge in all changes for include files. |
29 |
class CopyField; |
30 |
||
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
31 |
/*
|
32 |
Param to create temporary tables when doing SELECT:s
|
|
33 |
NOTE
|
|
34 |
This structure is copied using memcpy as a part of JOIN.
|
|
35 |
*/
|
|
36 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
37 |
class Tmp_Table_Param :public memory::SqlAlloc |
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
38 |
{
|
39 |
private: |
|
40 |
/* Prevent use of these (not safe because of lists and copy_field) */
|
|
41 |
Tmp_Table_Param(const Tmp_Table_Param &); |
|
42 |
void operator=(Tmp_Table_Param &); |
|
43 |
||
44 |
public: |
|
1535
by Brian Aker
Rename of KEY to KeyInfo |
45 |
KeyInfo *keyinfo; |
1101.1.16
by Monty Taylor
Reverted 1103 |
46 |
List<Item> copy_funcs; |
47 |
List<Item> save_copy_funcs; |
|
1052.2.2
by Nathan Williams
No actual code changes. Changed Copy_field to CopyField, to reflect the coding standards. |
48 |
CopyField *copy_field, *copy_field_end; |
49 |
CopyField *save_copy_field, *save_copy_field_end; |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
50 |
unsigned char *group_buff; |
51 |
Item **items_to_copy; /* Fields in tmp table */ |
|
52 |
MI_COLUMNDEF *recinfo,*start_recinfo; |
|
53 |
ha_rows end_write_records; |
|
1030.1.3
by Brian Aker
Final bits to structure alignment |
54 |
uint32_t field_count; |
55 |
uint32_t sum_func_count; |
|
56 |
uint32_t func_count; |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
57 |
uint32_t hidden_field_count; |
1030.1.3
by Brian Aker
Final bits to structure alignment |
58 |
uint32_t group_parts,group_length,group_null_parts; |
59 |
uint32_t quick_group; |
|
60 |
bool using_indirect_summary_function; |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
61 |
bool schema_table; |
1030.1.3
by Brian Aker
Final bits to structure alignment |
62 |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
63 |
/*
|
64 |
True if GROUP BY and its aggregate functions are already computed
|
|
65 |
by a table access method (e.g. by loose index scan). In this case
|
|
66 |
query execution should not perform aggregation and should treat
|
|
67 |
aggregate functions as normal functions.
|
|
68 |
*/
|
|
69 |
bool precomputed_group_by; |
|
1030.1.3
by Brian Aker
Final bits to structure alignment |
70 |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
71 |
bool force_copy_fields; |
1030.1.3
by Brian Aker
Final bits to structure alignment |
72 |
|
73 |
/* If >0 convert all blob fields to varchar(convert_blob_length) */
|
|
74 |
uint32_t convert_blob_length; |
|
75 |
||
76 |
const CHARSET_INFO *table_charset; |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
77 |
|
1889.1.2
by Brian Aker
Remove warnings for c++ |
78 |
Tmp_Table_Param() : |
79 |
keyinfo(0), |
|
80 |
copy_funcs(), |
|
81 |
save_copy_funcs(), |
|
82 |
copy_field(0), |
|
83 |
copy_field_end(0), |
|
84 |
save_copy_field(0), |
|
85 |
save_copy_field_end(0), |
|
86 |
group_buff(0), |
|
87 |
items_to_copy(0), |
|
88 |
recinfo(0), |
|
89 |
start_recinfo(0), |
|
90 |
end_write_records(0), |
|
91 |
field_count(0), |
|
92 |
sum_func_count(0), |
|
93 |
func_count(0), |
|
94 |
hidden_field_count(0), |
|
1101.1.16
by Monty Taylor
Reverted 1103 |
95 |
group_parts(0), |
96 |
group_length(0), |
|
97 |
group_null_parts(0), |
|
1889.1.2
by Brian Aker
Remove warnings for c++ |
98 |
quick_group(0), |
99 |
using_indirect_summary_function(false), |
|
1101.1.16
by Monty Taylor
Reverted 1103 |
100 |
schema_table(false), |
101 |
precomputed_group_by(false), |
|
102 |
force_copy_fields(false), |
|
1889.1.2
by Brian Aker
Remove warnings for c++ |
103 |
convert_blob_length(0), |
104 |
table_charset(0) |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
105 |
{}
|
1889.1.2
by Brian Aker
Remove warnings for c++ |
106 |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
107 |
~Tmp_Table_Param() |
108 |
{
|
|
1101.1.16
by Monty Taylor
Reverted 1103 |
109 |
cleanup(); |
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
110 |
}
|
1101.1.16
by Monty Taylor
Reverted 1103 |
111 |
void init(void); |
112 |
void cleanup(void); |
|
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
113 |
};
|
114 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
115 |
} /* namespace drizzled */ |
116 |
||
851
by Brian Aker
Class rewrite of Session (aka get all of the junk out) |
117 |
#endif /* DRIZZLED_TMP_TABLE_PARAM_H */ |