~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/heapdef.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef HEAPDEF_H
18
18
#define HEAPDEF_H
19
19
 
20
 
#include <drizzled/global.h>
21
 
#include <drizzled/base.h>
22
 
 
23
 
#include <mysys/my_sys.h>
24
 
#include <mystrings/m_ctype.h>
 
20
#include <drizzled/base.h>              /* This includes global */
 
21
 
 
22
#ifdef __cplusplus
 
23
extern "C" {
 
24
#endif
 
25
 
25
26
#include <mysys/my_pthread.h>
26
27
#include "heap.h"                       /* Structs & some defines */
27
28
#include <mysys/my_tree.h>
34
35
  as possible and keep memory consumption down.
35
36
*/
36
37
 
37
 
#ifdef __cplusplus
38
 
extern "C" {
39
 
#endif
40
 
 
41
38
#define HP_MIN_RECORDS_IN_BLOCK 16
42
39
#define HP_MAX_RECORDS_IN_BLOCK 8192
43
40
 
72
69
  uint32_t key_length;
73
70
  uint32_t search_flag;
74
71
} heap_rb_param;
75
 
 
 
72
      
76
73
        /* Prototypes for intern functions */
77
74
 
78
75
extern HP_SHARE *hp_find_named_heap(const char *name);
84
81
                           unsigned char *last_pos);
85
82
extern int hp_write_key(HP_INFO *info, HP_KEYDEF *keyinfo,
86
83
                        const unsigned char *record, unsigned char *recpos);
87
 
extern int hp_rb_write_key(HP_INFO *info, HP_KEYDEF *keyinfo,
 
84
extern int hp_rb_write_key(HP_INFO *info, HP_KEYDEF *keyinfo, 
88
85
                           const unsigned char *record, unsigned char *recpos);
89
86
extern int hp_rb_delete_key(HP_INFO *info,HP_KEYDEF *keyinfo,
90
87
                            const unsigned char *record,unsigned char *recpos,int flag);
119
116
                           key_part_map keypart_map);
120
117
 
121
118
   /* Chunkset management (alloc/free/encode/decode) functions */
122
 
 
 
119
 
123
120
extern unsigned char *hp_allocate_chunkset(HP_DATASPACE *info, uint32_t chunk_count);
124
121
extern int hp_reallocate_chunkset(HP_DATASPACE *info, uint32_t chunk_count, unsigned char* pos);
125
122
extern void hp_free_chunks(HP_DATASPACE *info, unsigned char *pos);
126
123
extern void hp_clear_dataspace(HP_DATASPACE *info);
127
 
 
 
124
 
128
125
extern uint32_t hp_get_encoded_data_length(HP_SHARE *info, const unsigned char *record, uint32_t *chunk_count);
129
126
extern void hp_copy_record_data_to_chunkset(HP_SHARE *info, const unsigned char *record, unsigned char *pos);
130
127
extern void hp_extract_record(HP_SHARE *info, unsigned char *record, const unsigned char *pos);