~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/ha_statistics.h

  • Committer: Monty Taylor
  • Date: 2008-10-10 23:04:21 UTC
  • mto: (509.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 511.
  • Revision ID: monty@inaugust.com-20081010230421-zohe1eppxievpw8d
Removed O_NOFOLLOW

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 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
 
 
20
 
#ifndef DRIZZLED_HA_STATISTICS_H
21
 
#define DRIZZLED_HA_STATISTICS_H
22
 
 
23
 
#include <drizzled/definitions.h>
24
 
#include <time.h>
25
 
 
26
 
namespace drizzled
27
 
{
28
 
 
29
 
class ha_statistics
30
 
{
31
 
public:
32
 
  uint64_t data_file_length;            /* Length off data file */
33
 
  uint64_t max_data_file_length;        /* Length off data file */
34
 
  uint64_t index_file_length;
35
 
  uint64_t max_index_file_length;
36
 
  uint64_t delete_length;               /* Free bytes */
37
 
  uint64_t auto_increment_value;
38
 
  /*
39
 
    The number of records in the table.
40
 
      0    - means the table has exactly 0 rows
41
 
    other  - if (table_flags() & HA_STATS_RECORDS_IS_EXACT)
42
 
               the value is the exact number of records in the table
43
 
             else
44
 
               it is an estimate
45
 
  */
46
 
  ha_rows records;
47
 
  ha_rows deleted;                      /* Deleted records */
48
 
  uint32_t mean_rec_length;             /* physical reclength */
49
 
  uint32_t block_size;                  /* index block size */
50
 
  time_t create_time;                   /* When table was created */
51
 
  time_t check_time;
52
 
  time_t update_time;
53
 
 
54
 
  ha_statistics():
55
 
    data_file_length(0), max_data_file_length(0),
56
 
    index_file_length(0), delete_length(0), auto_increment_value(0),
57
 
    records(0), deleted(0), mean_rec_length(0), block_size(0),
58
 
    create_time(0), check_time(0), update_time(0)
59
 
  {}
60
 
};
61
 
 
62
 
} /* namespace drizzled */
63
 
 
64
 
#endif /* DRIZZLED_HA_STATISTICS_H */