~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.h

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include <queue>
29
29
 
 
30
namespace drizzled
 
31
{
 
32
 
30
33
class JOIN;
31
34
class RorIntersectReadPlan; 
32
35
typedef class Item COND;
 
36
 
 
37
namespace internal
 
38
{
33
39
typedef struct st_io_cache IO_CACHE;
 
40
}
34
41
 
35
42
typedef struct st_handler_buffer HANDLER_BUFFER;
36
43
 
51
58
} KEY_PART;
52
59
 
53
60
 
54
 
namespace drizzled
55
 
{
56
 
 
57
61
namespace optimizer
58
62
{
59
63
 
284
288
 * The QuickSelectInterface member variable is the implementor
285
289
 * of the SELECT execution.
286
290
 */
287
 
class SqlSelect : public drizzled::memory::SqlAlloc 
 
291
class SqlSelect : public memory::SqlAlloc 
288
292
{
289
293
 public:
290
294
  QuickSelectInterface *quick; /**< If quick-select used */
291
295
  COND *cond; /**< where condition */
292
296
  Table *head;
293
 
  IO_CACHE *file; /**< Positions to used records */
 
297
  internal::IO_CACHE *file; /**< Positions to used records */
294
298
  ha_rows records; /**< Records in use if read from file */
295
299
  double read_time; /**< Time to read rows */
296
300
  key_map quick_keys; /**< Possible quick keys */
329
333
  NOTES
330
334
    The caller must call QUICK_SELECT::init for returned quick select.
331
335
 
332
 
    CAUTION! This function may change session->mem_root to a drizzled::memory::Root which will be
 
336
    CAUTION! This function may change session->mem_root to a memory::Root which will be
333
337
    deallocated when the returned quick select is deleted.
334
338
 
335
339
  RETURN
341
345
                                   SEL_ARG *key_tree, 
342
346
                                   uint32_t mrr_flags,
343
347
                                   uint32_t mrr_buf_size, 
344
 
                                   drizzled::memory::Root *alloc);
 
348
                                   memory::Root *alloc);
345
349
 
346
350
uint32_t get_index_for_order(Table *table, order_st *order, ha_rows limit);
347
351