~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/nested_join.h

  • Committer: Brian Aker
  • Date: 2008-08-18 22:20:43 UTC
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: brian@tangent.org-20080818222043-et6zf93ogrgx1cz9
Refactoring table.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DRIZZLED_NESTED_JOIN_H
 
2
#define DRIZZLED_NESTED_JOIN_H
 
3
 
 
4
struct nested_join_st
 
5
{
 
6
  List<TableList>  join_list;       /* list of elements in the nested join */
 
7
  table_map         used_tables;     /* bitmap of tables in the nested join */
 
8
  table_map         not_null_tables; /* tables that rejects nulls           */
 
9
  struct st_join_table *first_nested;/* the first nested table in the plan  */
 
10
  /* 
 
11
    Used to count tables in the nested join in 2 isolated places:
 
12
    1. In make_outerjoin_info(). 
 
13
    2. check_interleaving_with_nj/restore_prev_nj_state (these are called
 
14
       by the join optimizer. 
 
15
    Before each use the counters are zeroed by reset_nj_counters.
 
16
  */
 
17
  uint              counter_;
 
18
  nested_join_map   nj_map;          /* Bit used to identify this nested join*/
 
19
  /*
 
20
    (Valid only for semi-join nests) Bitmap of tables outside the semi-join
 
21
    that are used within the semi-join's ON condition.
 
22
  */
 
23
  table_map         sj_depends_on;
 
24
  /* Outer non-trivially correlated tables */
 
25
  table_map         sj_corr_tables;
 
26
  List<Item>        sj_outer_expr_list;
 
27
};
 
28
 
 
29
#endif /* DRIZZLED_NESTED_JOIN_H */