~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.h

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

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
22
22
#ifndef DRIZZLED_OPTIMIZER_RANGE_H
23
23
#define DRIZZLED_OPTIMIZER_RANGE_H
24
24
 
25
 
#include <drizzled/field.h>
26
 
#include <drizzled/item/sum.h>
27
 
#include <drizzled/table_reference.h>
 
25
#include "drizzled/field.h"
 
26
#include "drizzled/item/sum.h"
28
27
 
29
28
#include <queue>
30
29
 
31
 
#include <boost/dynamic_bitset.hpp>
32
 
 
33
30
namespace drizzled
34
31
{
35
32
 
259
256
   * Returns true if any index used by this quick select
260
257
   * uses field which is marked in passed bitmap.
261
258
   */
262
 
  virtual bool is_keys_used(const boost::dynamic_bitset<>& fields);
 
259
  virtual bool is_keys_used(const MyBitmap *fields);
263
260
};
264
261
 
265
262
struct st_qsel_param;
315
312
};
316
313
 
317
314
QuickRangeSelect *get_quick_select_for_ref(Session *session, 
318
 
                                           Table *table,
319
 
                                           table_reference_st *ref,
320
 
                                           ha_rows records);
 
315
                                             Table *table,
 
316
                                             struct table_reference_st *ref,
 
317
                                             ha_rows records);
321
318
 
322
319
/*
323
320
  Create a QuickRangeSelect from given key and SEL_ARG tree for that key.
348
345
                                   uint32_t mrr_buf_size, 
349
346
                                   memory::Root *alloc);
350
347
 
351
 
uint32_t get_index_for_order(Table *table, Order *order, ha_rows limit);
 
348
uint32_t get_index_for_order(Table *table, order_st *order, ha_rows limit);
352
349
 
353
350
SqlSelect *make_select(Table *head, 
354
351
                       table_map const_tables,