CMS 3D CMS Logo

Classes | Functions
dablooms.h File Reference
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  bitmap_t
 
struct  counting_bloom_header_t
 
struct  counting_bloom_t
 
struct  scaling_bloom_header_t
 
struct  scaling_bloom_t
 

Functions

int bitmap_check (bitmap_t *bitmap, unsigned int index, long offset)
 
int bitmap_decrement (bitmap_t *bitmap, unsigned int index, long offset)
 
int bitmap_flush (bitmap_t *bitmap)
 
int bitmap_increment (bitmap_t *bitmap, unsigned int index, long offset)
 
bitmap_tbitmap_resize (bitmap_t *bitmap, size_t old_size, size_t new_size)
 
int counting_bloom_add (counting_bloom_t *bloom, const char *s, size_t len)
 
int counting_bloom_check (counting_bloom_t *bloom, const char *s, size_t len)
 
int counting_bloom_remove (counting_bloom_t *bloom, const char *s, size_t len)
 
const char * dablooms_version (void)
 
void free_bitmap (bitmap_t *bitmap)
 
int free_counting_bloom (counting_bloom_t *bloom)
 
int free_scaling_bloom (scaling_bloom_t *bloom)
 
bitmap_tnew_bitmap (int fd, size_t bytes)
 
counting_bloom_tnew_counting_bloom (unsigned int capacity, double error_rate, const char *filename)
 
counting_bloom_tnew_counting_bloom_from_file (unsigned int capacity, double error_rate, const char *filename)
 
scaling_bloom_tnew_scaling_bloom (unsigned int capacity, double error_rate, const char *filename)
 
scaling_bloom_tnew_scaling_bloom_from_file (unsigned int capacity, double error_rate, const char *filename)
 
int scaling_bloom_add (scaling_bloom_t *bloom, const char *s, size_t len, uint64_t id)
 
int scaling_bloom_check (scaling_bloom_t *bloom, const char *s, size_t len)
 
uint64_t scaling_bloom_disk_seqnum (scaling_bloom_t *bloom)
 
int scaling_bloom_flush (scaling_bloom_t *bloom)
 
uint64_t scaling_bloom_mem_seqnum (scaling_bloom_t *bloom)
 
int scaling_bloom_remove (scaling_bloom_t *bloom, const char *s, size_t len, uint64_t id)
 

Function Documentation

int bitmap_check ( bitmap_t bitmap,
unsigned int  index,
long  offset 
)
int bitmap_decrement ( bitmap_t bitmap,
unsigned int  index,
long  offset 
)
int bitmap_flush ( bitmap_t bitmap)
int bitmap_increment ( bitmap_t bitmap,
unsigned int  index,
long  offset 
)
bitmap_t* bitmap_resize ( bitmap_t bitmap,
size_t  old_size,
size_t  new_size 
)
int counting_bloom_add ( counting_bloom_t bloom,
const char *  s,
size_t  len 
)
int counting_bloom_check ( counting_bloom_t bloom,
const char *  s,
size_t  len 
)
int counting_bloom_remove ( counting_bloom_t bloom,
const char *  s,
size_t  len 
)
const char* dablooms_version ( void  )
void free_bitmap ( bitmap_t bitmap)
int free_counting_bloom ( counting_bloom_t bloom)
int free_scaling_bloom ( scaling_bloom_t bloom)
bitmap_t* new_bitmap ( int  fd,
size_t  bytes 
)
counting_bloom_t* new_counting_bloom ( unsigned int  capacity,
double  error_rate,
const char *  filename 
)
counting_bloom_t* new_counting_bloom_from_file ( unsigned int  capacity,
double  error_rate,
const char *  filename 
)
scaling_bloom_t* new_scaling_bloom ( unsigned int  capacity,
double  error_rate,
const char *  filename 
)
scaling_bloom_t* new_scaling_bloom_from_file ( unsigned int  capacity,
double  error_rate,
const char *  filename 
)
int scaling_bloom_add ( scaling_bloom_t bloom,
const char *  s,
size_t  len,
uint64_t  id 
)
int scaling_bloom_check ( scaling_bloom_t bloom,
const char *  s,
size_t  len 
)
uint64_t scaling_bloom_disk_seqnum ( scaling_bloom_t bloom)
int scaling_bloom_flush ( scaling_bloom_t bloom)
uint64_t scaling_bloom_mem_seqnum ( scaling_bloom_t bloom)
int scaling_bloom_remove ( scaling_bloom_t bloom,
const char *  s,
size_t  len,
uint64_t  id 
)