~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/table_read_plan.h

  • Committer: Brian Aker
  • Date: 2010-07-30 20:31:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1679.
  • Revision ID: brian@gaz-20100730203119-89g2ye4zwnvcacxg
First pass in encapsulating row

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-2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008-2009 Sun Microsystems
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
26
26
namespace drizzled
27
27
{
28
28
 
 
29
struct st_ror_scan_info;
 
30
 
29
31
namespace optimizer
30
32
{
31
33
 
32
34
class Parameter;
33
35
class SEL_ARG;
34
36
class SEL_TREE;
35
 
class RorScanInfo;
36
37
 
37
38
/*
38
39
  Table rows retrieval plan. Range optimizer creates QuickSelectInterface-derived
133
134
                                   memory::Root *parent_alloc);
134
135
 
135
136
  /* Array of pointers to ROR range scans used in this intersection */
136
 
  RorScanInfo **first_scan;
137
 
  RorScanInfo **last_scan; /* End of the above array */
138
 
  RorScanInfo *cpk_scan;  /* Clustered PK scan, if there is one */
 
137
  struct st_ror_scan_info **first_scan;
 
138
  struct st_ror_scan_info **last_scan; /* End of the above array */
 
139
  struct st_ror_scan_info *cpk_scan;  /* Clustered PK scan, if there is one */
139
140
 
140
141
  bool is_covering; /* true if no row retrieval phase is necessary */
141
142
  double index_scan_costs; /* SUM(cost(index_scan)) */