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 |
*
|
|
1999.6.1
by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file |
4 |
* Copyright (C) 2008 Sun Microsystems, Inc.
|
390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
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 |
||
1826.1.1
by tdavies
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes. |
20 |
#include "drizzled/sql_sort.h" |
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
21 |
#ifndef DRIZZLED_FILESORT_INFO_H
|
22 |
#define DRIZZLED_FILESORT_INFO_H
|
|
327.2.3
by Brian Aker
Refactoring of class Table |
23 |
|
1826.1.1
by tdavies
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes. |
24 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
25 |
namespace drizzled |
26 |
{
|
|
27 |
||
327.2.3
by Brian Aker
Refactoring of class Table |
28 |
/* Information on state of filesort */
|
1826.1.1
by tdavies
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes. |
29 |
class filesort_info |
327.2.3
by Brian Aker
Refactoring of class Table |
30 |
{
|
1826.1.1
by tdavies
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes. |
31 |
public: |
1909
by Brian Aker
Filesort encapsulation, plus modification to copy contructor |
32 |
internal::st_io_cache *io_cache; /* If sorted through filesort */ |
481
by Brian Aker
Remove all of uchar. |
33 |
unsigned char **sort_keys; /* Buffer for sorting keys */ |
34 |
unsigned char *buffpek; /* Buffer for buffpek structures */ |
|
482
by Brian Aker
Remove uint. |
35 |
uint32_t buffpek_len; /* Max number of buffpeks in the buffer */ |
481
by Brian Aker
Remove all of uchar. |
36 |
unsigned char *addon_buf; /* Pointer to a buffer if sorted with fields */ |
327.2.3
by Brian Aker
Refactoring of class Table |
37 |
size_t addon_length; /* Length of the buffer */ |
1826.1.1
by tdavies
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes. |
38 |
sort_addon_field *addon_field; /* Pointer to the fields info */ |
39 |
void (*unpack)(sort_addon_field *, unsigned char *); /* To unpack back */ |
|
481
by Brian Aker
Remove all of uchar. |
40 |
unsigned char *record_pointers; /* If sorted in memory */ |
327.2.3
by Brian Aker
Refactoring of class Table |
41 |
ha_rows found_records; /* How many records in sort */ |
1711.6.5
by Brian Aker
Updating so that structures have constructor (removed memset calls). |
42 |
|
1826.1.1
by tdavies
Bug:621861 Changed C structs to C++ class in the following files: filesort.cc, filesort_info.h, sql_sort.h, table.h. removed the '_st' from the name of some of the classes. For more detail of changes made read the merge proposal notes. |
43 |
filesort_info() : |
1711.6.5
by Brian Aker
Updating so that structures have constructor (removed memset calls). |
44 |
io_cache(0), |
45 |
sort_keys(0), |
|
46 |
buffpek(0), |
|
47 |
buffpek_len(0), |
|
48 |
addon_buf(0), |
|
49 |
addon_length(0), |
|
50 |
addon_field(0), |
|
51 |
unpack(0), |
|
52 |
record_pointers(0), |
|
53 |
found_records() |
|
54 |
{ } |
|
1908.1.1
by Brian Aker
Merge in encapsulations in filesort. |
55 |
|
1909
by Brian Aker
Filesort encapsulation, plus modification to copy contructor |
56 |
filesort_info(const filesort_info& arg) : |
57 |
io_cache(arg.io_cache), |
|
58 |
sort_keys(arg.sort_keys), |
|
59 |
buffpek(arg.buffpek), |
|
60 |
buffpek_len(arg.buffpek_len), |
|
61 |
addon_buf(arg.addon_buf), |
|
62 |
addon_length(arg.addon_length), |
|
63 |
addon_field(arg.addon_field), |
|
64 |
unpack(arg.unpack), |
|
65 |
record_pointers(arg.record_pointers), |
|
66 |
found_records(arg.found_records) |
|
67 |
{
|
|
1908.1.1
by Brian Aker
Merge in encapsulations in filesort. |
68 |
}
|
69 |
||
70 |
~filesort_info() |
|
71 |
{
|
|
72 |
}
|
|
73 |
||
327.2.3
by Brian Aker
Refactoring of class Table |
74 |
};
|
75 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
76 |
} /* namespace drizzled */ |
77 |
||
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
78 |
#endif /* DRIZZLED_FILESORT_INFO_H */ |