390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
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.
|
390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
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 |
||
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
20 |
#pragma once
|
327.2.4
by Brian Aker
Refactoring table.h |
21 |
|
2154.2.4
by Brian Aker
This fixes 716459 |
22 |
#include <drizzled/item.h> |
23 |
#include <drizzled/lex_string.h> |
|
553.1.2
by Monty Taylor
Moved some bitmap defines into bitmap. |
24 |
#include <drizzled/sql_list.h> |
25 |
||
1100.4.2
by Padraig O'Sullivan
Removed the typedef for nested_join_map and instead just declare these |
26 |
#include <bitset> |
27 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
28 |
namespace drizzled |
29 |
{
|
|
2141.3.1
by vjsamuel1990 at gmail
Merge encapsulate join_read_const_table() into JoinTable. |
30 |
class TableList; |
2154.2.4
by Brian Aker
This fixes 716459 |
31 |
class JoinTable; |
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
32 |
|
2141.3.3
by vjsamuel1990 at gmail
Merge change nested_join_st to NestedJoin |
33 |
class NestedJoin |
327.2.4
by Brian Aker
Refactoring table.h |
34 |
{
|
2141.3.1
by vjsamuel1990 at gmail
Merge encapsulate join_read_const_table() into JoinTable. |
35 |
public: |
553.1.3
by Monty Taylor
Split out nested_join.h. |
36 |
/* list of elements in the nested join */
|
37 |
List<TableList> join_list; |
|
38 |
||
39 |
/* bitmap of tables in the nested join */
|
|
40 |
table_map used_tables; |
|
41 |
||
42 |
/* tables that rejects nulls */
|
|
43 |
table_map not_null_tables; |
|
44 |
||
45 |
/* the first nested table in the plan */
|
|
1089.1.1
by Brian Aker
Remove of JOIN_TAB to JoinTable |
46 |
JoinTable *first_nested; |
553.1.3
by Monty Taylor
Split out nested_join.h. |
47 |
|
48 |
/*
|
|
327.2.4
by Brian Aker
Refactoring table.h |
49 |
Used to count tables in the nested join in 2 isolated places:
|
553.1.3
by Monty Taylor
Split out nested_join.h. |
50 |
1. In make_outerjoin_info().
|
327.2.4
by Brian Aker
Refactoring table.h |
51 |
2. check_interleaving_with_nj/restore_prev_nj_state (these are called
|
553.1.3
by Monty Taylor
Split out nested_join.h. |
52 |
by the join optimizer.
|
327.2.4
by Brian Aker
Refactoring table.h |
53 |
Before each use the counters are zeroed by reset_nj_counters.
|
54 |
*/
|
|
553.1.3
by Monty Taylor
Split out nested_join.h. |
55 |
uint32_t counter_; |
56 |
||
57 |
/* Bit used to identify this nested join*/
|
|
1100.4.2
by Padraig O'Sullivan
Removed the typedef for nested_join_map and instead just declare these |
58 |
std::bitset<64> nj_map; |
553.1.3
by Monty Taylor
Split out nested_join.h. |
59 |
|
327.2.4
by Brian Aker
Refactoring table.h |
60 |
/*
|
61 |
(Valid only for semi-join nests) Bitmap of tables outside the semi-join
|
|
62 |
that are used within the semi-join's ON condition.
|
|
63 |
*/
|
|
553.1.3
by Monty Taylor
Split out nested_join.h. |
64 |
table_map sj_depends_on; |
327.2.4
by Brian Aker
Refactoring table.h |
65 |
/* Outer non-trivially correlated tables */
|
553.1.3
by Monty Taylor
Split out nested_join.h. |
66 |
table_map sj_corr_tables; |
67 |
||
68 |
List<Item> sj_outer_expr_list; |
|
1637.5.9
by Prafulla Tekawade
Fix for Bug 592444 |
69 |
|
70 |
/**
|
|
71 |
True if this join nest node is completely covered by the query execution
|
|
72 |
plan. This means two things.
|
|
73 |
||
74 |
1. All tables on its @c join_list are covered by the plan.
|
|
75 |
||
76 |
2. All child join nest nodes are fully covered.
|
|
77 |
*/
|
|
2183.2.17
by Olaf van der Spek
Use List::size() |
78 |
bool is_fully_covered() const { return join_list.size() == counter_; } |
327.2.4
by Brian Aker
Refactoring table.h |
79 |
};
|
80 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
81 |
} /* namespace drizzled */ |
82 |