~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/access_method.h

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
merge lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_OPTIMIZER_ACCESS_METHOD_H
22
 
#define DRIZZLED_OPTIMIZER_ACCESS_METHOD_H
23
 
 
24
 
#include "drizzled/definitions.h"
25
 
#include "drizzled/error.h"
26
 
#include "drizzled/sql_parse.h"
27
 
#include "drizzled/sql_base.h"
28
 
#include "drizzled/show.h"
29
 
 
30
 
 
31
 
namespace drizzled
32
 
{
33
 
 
34
 
/* Forward declarations */
35
 
class Table;
36
 
class JoinTable;
37
 
 
38
 
namespace optimizer
39
 
{
 
21
#pragma once
 
22
 
 
23
#include <drizzled/common_fwd.h>
 
24
 
 
25
namespace drizzled {
 
26
namespace optimizer {
40
27
 
41
28
/**
42
29
 * @class AccessMethod
45
32
class AccessMethod
46
33
{
47
34
public:
48
 
 
49
 
  AccessMethod() {}
 
35
  typedef boost::shared_ptr<AccessMethod> ptr;
50
36
 
51
37
  virtual ~AccessMethod() {}
52
38
 
57
43
   * @param[in] join_tab
58
44
   * @return true on failure; false on success
59
45
   */
60
 
  virtual bool getStats(Table *table,
61
 
                        JoinTable *join_tab)= 0;
62
 
 
 
46
  virtual void getStats(Table&, JoinTable&)= 0;
63
47
};
64
48
 
65
49
} /* end namespace optimizer */
66
 
 
67
50
} /* end namespace drizzled */
68
51
 
69
 
#endif /* DRIZZLED_OPTIMIZER_ACCESS_METHOD_H */