~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/pars0opt.h

  • Committer: Brian Aker
  • Date: 2009-01-24 09:43:35 UTC
  • Revision ID: brian@gir-3.local-20090124094335-6qdtvc35gl5fvivz
Adding in an example singe thread scheduler

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (c) 1997, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
13
 
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/pars0opt.h
 
1
/******************************************************
21
2
Simple SQL optimizer
22
3
 
 
4
(c) 1997 Innobase Oy
 
5
 
23
6
Created 12/21/1997 Heikki Tuuri
24
7
*******************************************************/
25
8
 
33
16
#include "dict0types.h"
34
17
#include "row0sel.h"
35
18
 
36
 
/*******************************************************************//**
 
19
/***********************************************************************
37
20
Optimizes a select. Decides which indexes to tables to use. The tables
38
21
are accessed in the order that they were written to the FROM part in the
39
22
select statement. */
41
24
void
42
25
opt_search_plan(
43
26
/*============*/
44
 
        sel_node_t*     sel_node);      /*!< in: parsed select node */
45
 
/*******************************************************************//**
 
27
        sel_node_t*     sel_node);      /* in: parsed select node */
 
28
/***********************************************************************
46
29
Looks for occurrences of the columns of the table in the query subgraph and
47
30
adds them to the list of columns if an occurrence of the same column does not
48
31
already exist in the list. If the column is already in the list, puts a value
53
36
void
54
37
opt_find_all_cols(
55
38
/*==============*/
56
 
        ibool           copy_val,       /*!< in: if TRUE, new found columns are
 
39
        ibool           copy_val,       /* in: if TRUE, new found columns are
57
40
                                        added as columns to copy */
58
 
        dict_index_t*   index,          /*!< in: index to use */
59
 
        sym_node_list_t* col_list,      /*!< in: base node of a list where
 
41
        dict_index_t*   index,          /* in: index to use */
 
42
        sym_node_list_t* col_list,      /* in: base node of a list where
60
43
                                        to add new found columns */
61
 
        plan_t*         plan,           /*!< in: plan or NULL */
62
 
        que_node_t*     exp);           /*!< in: expression or condition */
63
 
/********************************************************************//**
 
44
        plan_t*         plan,           /* in: plan or NULL */
 
45
        que_node_t*     exp);           /* in: expression or condition */
 
46
/************************************************************************
64
47
Prints info of a query plan. */
65
48
UNIV_INTERN
66
49
void
67
50
opt_print_query_plan(
68
51
/*=================*/
69
 
        sel_node_t*     sel_node);      /*!< in: select node */
 
52
        sel_node_t*     sel_node);      /* in: select node */
70
53
 
71
54
#ifndef UNIV_NONINL
72
55
#include "pars0opt.ic"