~drizzle-trunk/drizzle/development

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
 */
1 by brian
clean slate
19
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
20
#pragma once
471 by Monty Taylor
Added header protections.
21
1241.9.46 by Monty Taylor
Removed some more evil.
22
#include <unistd.h>
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
23
#include <drizzled/base.h>
2252.1.17 by Olaf van der Spek
Common fwd
24
#include <drizzled/common_fwd.h>
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
25
#include <drizzled/qsort_cmp.h>
1241.9.12 by Monty Taylor
Trims more out of server_includes.h.
26
2252.1.17 by Olaf van der Spek
Common fwd
27
namespace drizzled {
471 by Monty Taylor
Added header protections.
28
1 by brian
clean slate
29
/*
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.
30
   The structure sort_addon_field describes a fixed layout
1 by brian
clean slate
31
   for field values appended to sorted values in records to be sorted
32
   in the sort buffer.
33
   Only fixed layout is supported now.
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
34
   Null bit maps for the appended values is placed before the values
1 by brian
clean slate
35
   themselves. Offsets are from the last sorted field, that is from the
36
   record referefence, which is still last component of sorted records.
37
   It is preserved for backward compatiblility.
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
38
   The structure is used tp store values of the additional fields
1 by brian
clean slate
39
   in the sort buffer. It is used also when these values are read
40
   from a temporary file/buffer. As the reading procedures are beyond the
41
   scope of the 'filesort' code the values have to be retrieved via
42
   the callback function 'unpack_addon_fields'.
43
*/
44
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.
45
class sort_addon_field {  /* Sort addon packed field */
46
public:
1 by brian
clean slate
47
  Field *field;          /* Original field */
482 by Brian Aker
Remove uint.
48
  uint32_t   offset;         /* Offset from the last sorted field */
49
  uint32_t   null_offset;    /* Offset to to null bit from the last sorted field */
50
  uint32_t   length;         /* Length in the sort buffer */
206 by Brian Aker
Removed final uint dead types.
51
  uint8_t  null_bit;       /* Null bit mask for the field */
1711.6.1 by Brian Aker
Style on structure cleanup
52
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.
53
  sort_addon_field() :
1711.6.1 by Brian Aker
Style on structure cleanup
54
    field(NULL),
55
    offset(0),
56
    null_offset(0),
57
    length(0),
58
    null_bit(0)
59
  { }
60
61
};
62
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.
63
class buffpek {		/* Struktur om sorteringsbuffrarna */
64
public:
1241.9.45 by Monty Taylor
Added a header for qsort_cmp.
65
  off_t file_pos;			/* Where we are in the sort file */
1711.6.1 by Brian Aker
Style on structure cleanup
66
  unsigned char *base;			/* key pointers */
67
  unsigned char *key;			/* key pointers */
1 by brian
clean slate
68
  ha_rows count;			/* Number of rows in table */
1241.9.46 by Monty Taylor
Removed some more evil.
69
  size_t mem_count;			/* numbers of keys in memory */
70
  size_t max_keys;			/* Max keys in buffert */
1711.6.1 by Brian Aker
Style on structure cleanup
71
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.
72
  buffpek() :
1711.6.1 by Brian Aker
Style on structure cleanup
73
    file_pos(0),
74
    base(0),
75
    key(0),
76
    count(0),
77
    mem_count(0),
78
    max_keys(0)
79
  { }
80
81
};
1 by brian
clean slate
82
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
83
} /* namespace drizzled */
84