~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

  • Committer: Brian Aker
  • Date: 2010-01-12 21:04:27 UTC
  • mfrom: (1259.6.3 hash_algorithm)
  • Revision ID: brian@gaz-20100112210427-ynafptc9b1jnv4d3
Merge Joe

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* This file should be included when using myisam_funktions */
17
17
 
18
 
#ifndef _myisam_h
19
 
#define _myisam_h
 
18
#ifndef PLUGIN_MYISAM_MYISAM_H
 
19
#define PLUGIN_MYISAM_MYISAM_H
20
20
 
21
21
#include <drizzled/key_map.h>
22
22
 
26
26
 
27
27
#include <drizzled/base.h>
28
28
#ifndef _m_ctype_h
29
 
#include <mystrings/m_ctype.h>
 
29
#include "drizzled/charset_info.h"
30
30
#endif
31
31
#ifndef _keycache_h
32
32
#include "keycache.h"
33
33
#endif
34
34
#include <plugin/myisam/my_handler.h>
35
 
#include <mysys/iocache.h>
 
35
#include "drizzled/internal/iocache.h"
36
36
 
37
37
/*
38
38
  Limit max keys according to HA_MAX_POSSIBLE_KEY
145
145
  uint  options;                        /* HA_OPTION_... used */
146
146
  int   errkey,                         /* With key was dupplicated on err */
147
147
        sortkey;                        /* clustered by this key */
148
 
  File  filenr;                         /* (uniq) filenr for datafile */
 
148
  int   filenr;                         /* (uniq) filenr for datafile */
149
149
  time_t create_time;                   /* When table was created */
150
150
  time_t check_time;
151
151
  time_t update_time;
274
274
extern int mi_scan_init(struct st_myisam_info *file);
275
275
extern int mi_scan(struct st_myisam_info *file,unsigned char *buf);
276
276
extern int mi_rsame(struct st_myisam_info *file,unsigned char *record,int inx);
277
 
extern int mi_rsame_with_pos(struct st_myisam_info *file,unsigned char *record,
278
 
                             int inx, my_off_t pos);
279
277
extern int mi_update(struct st_myisam_info *file,const unsigned char *old,
280
278
                     unsigned char *new_record);
281
279
extern int mi_write(struct st_myisam_info *file,unsigned char *buff);
295
293
extern ha_rows mi_records_in_range(MI_INFO *info, int inx,
296
294
                                   key_range *min_key, key_range *max_key);
297
295
extern int mi_log(int activate_log);
298
 
extern int mi_is_changed(struct st_myisam_info *info);
299
296
extern int mi_delete_all_rows(struct st_myisam_info *info);
300
297
extern ulong _mi_calc_blob_length(uint32_t length , const unsigned char *pos);
301
298
extern uint32_t mi_get_pointer_length(uint64_t file_length, uint32_t def);
462
459
void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
463
460
                      uint64_t *unique, uint64_t *notnull,
464
461
                      uint64_t records);
465
 
int filecopy(MI_CHECK *param, File to,File from,my_off_t start,
 
462
int filecopy(MI_CHECK *param, int to,int from,my_off_t start,
466
463
             my_off_t length, const char *type);
467
464
int movepoint(MI_INFO *info,unsigned char *record,my_off_t oldpos,
468
465
              my_off_t newpos, uint32_t prot_key);
475
472
int mi_init_bulk_insert(MI_INFO *info, uint32_t cache_size, ha_rows rows);
476
473
void mi_flush_bulk_insert(MI_INFO *info, uint32_t inx);
477
474
void mi_end_bulk_insert(MI_INFO *info);
478
 
int mi_assign_to_key_cache(MI_INFO *info, KEY_CACHE *key_cache); 
479
 
void mi_change_key_cache(KEY_CACHE *old_key_cache,
480
 
                         KEY_CACHE *new_key_cache);
481
475
int mi_preload(MI_INFO *info, uint64_t key_map, bool ignore_leaves);
482
476
 
483
477
#ifdef  __cplusplus
484
478
}
485
479
#endif
486
 
#endif
 
480
#endif /* PLUGIN_MYISAM_MYISAM_H */