~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/ha_statistics.h

move functions from item.cc/item.h to item directory

Show diffs side-by-side

added added

removed removed

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