575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
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.
|
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
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 |
||
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
20 |
#pragma once
|
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
21 |
|
2187.7.2
by Brian Aker
Sort the headers in cursor to find dependency |
22 |
#include <drizzled/base.h> |
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
23 |
#include <time.h> |
24 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
25 |
namespace drizzled |
26 |
{
|
|
27 |
||
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
28 |
class ha_statistics |
29 |
{
|
|
30 |
public: |
|
31 |
uint64_t data_file_length; /* Length off data file */ |
|
32 |
uint64_t max_data_file_length; /* Length off data file */ |
|
33 |
uint64_t index_file_length; |
|
34 |
uint64_t max_index_file_length; |
|
35 |
uint64_t delete_length; /* Free bytes */ |
|
36 |
uint64_t auto_increment_value; |
|
37 |
/*
|
|
660.1.3
by Eric Herman
removed trailing whitespace with simple script: |
38 |
The number of records in the table.
|
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
39 |
0 - means the table has exactly 0 rows
|
40 |
other - if (table_flags() & HA_STATS_RECORDS_IS_EXACT)
|
|
41 |
the value is the exact number of records in the table
|
|
42 |
else
|
|
43 |
it is an estimate
|
|
44 |
*/
|
|
45 |
ha_rows records; |
|
46 |
ha_rows deleted; /* Deleted records */ |
|
47 |
uint32_t mean_rec_length; /* physical reclength */ |
|
1030.1.1
by Brian Aker
Straighten out structures (remove some some dead bits). |
48 |
uint32_t block_size; /* index block size */ |
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
49 |
time_t create_time; /* When table was created */ |
50 |
time_t check_time; |
|
51 |
time_t update_time; |
|
52 |
||
53 |
ha_statistics(): |
|
54 |
data_file_length(0), max_data_file_length(0), |
|
55 |
index_file_length(0), delete_length(0), auto_increment_value(0), |
|
1030.1.1
by Brian Aker
Straighten out structures (remove some some dead bits). |
56 |
records(0), deleted(0), mean_rec_length(0), block_size(0), |
57 |
create_time(0), check_time(0), update_time(0) |
|
575.1.3
by Monty Taylor
Moved some stuff out of handler.h. |
58 |
{}
|
59 |
};
|
|
60 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
61 |
} /* namespace drizzled */ |
62 |