~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sj_tmp_table.h

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2008 Brian Aker
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; version 2 of the License.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 
 */
19
 
 
20
1
#ifndef DRIZZLED_SJ_TMP_TABLE_H
21
2
#define DRIZZLED_SJ_TMP_TABLE_H
22
3
 
44
25
  {
45
26
  public:
46
27
    struct st_join_table *join_tab;
47
 
    uint32_t rowid_offset;
48
 
    uint16_t null_byte;
49
 
    unsigned char null_bit;
 
28
    uint rowid_offset;
 
29
    ushort null_byte;
 
30
    uchar null_bit;
50
31
  };
51
32
  TAB *tabs;
52
33
  TAB *tabs_end;
53
34
 
54
 
  uint32_t null_bits;
55
 
  uint32_t null_bytes;
56
 
  uint32_t rowid_len;
 
35
  uint null_bits;
 
36
  uint null_bytes;
 
37
  uint rowid_len;
57
38
 
58
39
  Table *tmp_table;
59
40
 
64
45
  SJ_TMP_TABLE *next; 
65
46
};
66
47
 
67
 
Table *create_duplicate_weedout_tmp_table(Session *session, 
68
 
                                          uint32_t uniq_tuple_length_arg,
 
48
Table *create_duplicate_weedout_tmp_table(THD *thd, 
 
49
                                          uint uniq_tuple_length_arg,
69
50
                                          SJ_TMP_TABLE *sjtbl);
70
51
 
71
52
#endif /* DRIZZLED_SJ_TMP_TABLE_H */