~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unique.h

Merged Drizzle's Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
   memory simultaneously with iteration, so it should be ~2-3x faster.
31
31
 */
32
32
 
 
33
namespace drizzled
 
34
{
 
35
 
 
36
namespace internal
 
37
{
33
38
typedef struct st_io_cache IO_CACHE;
 
39
}
34
40
 
35
 
class Unique :public drizzled::memory::SqlAlloc
 
41
class Unique : public memory::SqlAlloc
36
42
{
37
43
  DYNAMIC_ARRAY file_ptrs;
38
44
  ulong max_elements;
39
45
  size_t max_in_memory_size;
40
 
  IO_CACHE *file;
 
46
  internal::IO_CACHE *file;
41
47
  TREE tree;
42
48
  unsigned char *record_pointers;
43
49
  bool flush();
74
80
  friend int unique_write_to_ptrs(unsigned char* key, uint32_t count, Unique *unique);
75
81
};
76
82
 
 
83
} /* namespace drizzled */
 
84
 
77
85
#endif /* DRIZZLED_UNIQUE_H */