drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::Unique Class Reference
Inheritance diagram for drizzled::Unique:
[legend]
Collaboration diagram for drizzled::Unique:
[legend]

Public Member Functions

 Unique (qsort_cmp2 comp_func, void *comp_func_fixed_arg, uint32_t size_arg, size_t max_in_memory_size_arg)
ulong elements_in_tree ()
bool unique_add (void *ptr)
bool get (Table *table)
void reset ()
bool walk (tree_walk_action action, void *walk_action_arg)

Static Public Member Functions

static double get_use_cost (uint32_t *buffer, uint32_t nkeys, uint32_t key_size, size_t max_in_memory_size)
static int get_cost_calc_buff_size (ulong nkeys, uint32_t key_size, size_t sortbuff_size)
Static Public Member Functions inherited from drizzled::memory::SqlAlloc
static void * operator new (size_t size)
static void * operator new[] (size_t size)
static void * operator new (size_t size, Root &root)
static void * operator new[] (size_t size, Root &root)
static void * operator new (size_t size, Root *root)
static void * operator new[] (size_t size, Root *root)
static void operator delete (void *)
static void operator delete[] (void *)
static void operator delete (void *, Root &)
static void operator delete[] (void *, Root &)
static void operator delete (void *, Root *)
static void operator delete[] (void *, Root *)

Public Attributes

ulong elements

Private Attributes

size_t max_in_memory_size
Tree tree
unsigned char * record_pointers
uint32_t size

Friends

int unique_write_to_file (unsigned char *key, uint32_t count, Unique *unique)
int unique_write_to_ptrs (unsigned char *key, uint32_t count, Unique *unique)

Detailed Description

Definition at line 40 of file unique.h.

Constructor & Destructor Documentation

◆ Unique()

drizzled::Unique::Unique ( qsort_cmp2 comp_func,
void * comp_func_fixed_arg,
uint32_t size_arg,
size_t max_in_memory_size_arg )

Definition at line 58 of file unique.cc.

◆ ~Unique()

drizzled::Unique::~Unique ( )

Definition at line 160 of file unique.cc.

Member Function Documentation

◆ elements_in_tree()

ulong drizzled::Unique::elements_in_tree ( )
inline

Definition at line 52 of file unique.h.

◆ get()

bool drizzled::Unique::get ( Table * table)

Definition at line 209 of file unique.cc.

◆ get_cost_calc_buff_size()

int drizzled::Unique::get_cost_calc_buff_size ( ulong nkeys,
uint32_t key_size,
size_t sortbuff_size )
inlinestatic

Definition at line 61 of file unique.h.

◆ get_use_cost()

double drizzled::Unique::get_use_cost ( uint32_t * buffer,
uint32_t nkeys,
uint32_t key_size,
size_t max_in_memory_size )
static

Definition at line 141 of file unique.cc.

◆ reset()

void drizzled::Unique::reset ( )

Definition at line 172 of file unique.cc.

◆ unique_add()

bool drizzled::Unique::unique_add ( void * ptr)
inline

Definition at line 53 of file unique.h.

◆ walk()

bool drizzled::Unique::walk ( tree_walk_action action,
void * walk_action_arg )

Definition at line 199 of file unique.cc.

◆ unique_write_to_ptrs

int unique_write_to_ptrs ( unsigned char * key,
uint32_t count,
Unique * unique )
friend

Definition at line 50 of file unique.cc.

Member Data Documentation

◆ elements

ulong drizzled::Unique::elements

Definition at line 48 of file unique.h.

◆ max_in_memory_size

size_t drizzled::Unique::max_in_memory_size
private

Definition at line 42 of file unique.h.

◆ record_pointers

unsigned char* drizzled::Unique::record_pointers
private

Definition at line 44 of file unique.h.

◆ size

uint32_t drizzled::Unique::size
private

Definition at line 45 of file unique.h.

◆ tree

Tree drizzled::Unique::tree
private

Definition at line 43 of file unique.h.


The documentation for this class was generated from the following files: