390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
1 |
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3 |
*
|
|
4 |
* Copyright (C) 2008 Sun Microsystems
|
|
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 |
||
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
20 |
#ifndef DRIZZLED_FILESORT_INFO_H
|
21 |
#define DRIZZLED_FILESORT_INFO_H
|
|
327.2.3
by Brian Aker
Refactoring of class Table |
22 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
23 |
namespace drizzled |
24 |
{
|
|
25 |
||
327.2.3
by Brian Aker
Refactoring of class Table |
26 |
/* Information on state of filesort */
|
27 |
struct filesort_info_st |
|
28 |
{
|
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
29 |
internal::IO_CACHE *io_cache; /* If sorted through filesort */ |
481
by Brian Aker
Remove all of uchar. |
30 |
unsigned char **sort_keys; /* Buffer for sorting keys */ |
31 |
unsigned char *buffpek; /* Buffer for buffpek structures */ |
|
482
by Brian Aker
Remove uint. |
32 |
uint32_t buffpek_len; /* Max number of buffpeks in the buffer */ |
481
by Brian Aker
Remove all of uchar. |
33 |
unsigned char *addon_buf; /* Pointer to a buffer if sorted with fields */ |
327.2.3
by Brian Aker
Refactoring of class Table |
34 |
size_t addon_length; /* Length of the buffer */ |
1711.6.1
by Brian Aker
Style on structure cleanup |
35 |
struct sort_addon_field_st *addon_field; /* Pointer to the fields info */ |
36 |
void (*unpack)(struct sort_addon_field_st *, unsigned char *); /* To unpack back */ |
|
481
by Brian Aker
Remove all of uchar. |
37 |
unsigned char *record_pointers; /* If sorted in memory */ |
327.2.3
by Brian Aker
Refactoring of class Table |
38 |
ha_rows found_records; /* How many records in sort */ |
1711.6.5
by Brian Aker
Updating so that structures have constructor (removed memset calls). |
39 |
|
40 |
filesort_info_st() : |
|
41 |
io_cache(0), |
|
42 |
sort_keys(0), |
|
43 |
buffpek(0), |
|
44 |
buffpek_len(0), |
|
45 |
addon_buf(0), |
|
46 |
addon_length(0), |
|
47 |
addon_field(0), |
|
48 |
unpack(0), |
|
49 |
record_pointers(0), |
|
50 |
found_records() |
|
51 |
{ } |
|
327.2.3
by Brian Aker
Refactoring of class Table |
52 |
};
|
53 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
54 |
} /* namespace drizzled */ |
55 |
||
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
56 |
#endif /* DRIZZLED_FILESORT_INFO_H */ |