contact | forum | legal | impressum | privacy

hamsterdb API Documentation

 

ham_record_filter_t Struct Reference

#include <hamsterdb_int.h>


Data Fields

void * userdata
ham_record_filter_before_insert_cb_t before_insert_cb
ham_record_filter_after_read_cb_t after_read_cb
ham_record_filter_close_cb_t close_cb
ham_u32_t _flags
ham_record_filter_t_next
ham_record_filter_t_prev

Detailed Description

A handle for record-level filtering

Record-level filters can modify and resize the record data before the record is inserted, and before it is returned to the user.

Record-level filters can be used for example for writing compression filters. See ham_enable_compression() to create a filter for zlib-based compression.

Each of the three callback functions can be NULL.

Before this structure is used, it has to be initialized with zeroes.

Definition at line 200 of file hamsterdb_int.h.


Field Documentation

The user data

Definition at line 203 of file hamsterdb_int.h.

The function which is called before the record is inserted

Definition at line 206 of file hamsterdb_int.h.

The function which is called after the record is read from disk

Definition at line 209 of file hamsterdb_int.h.

The function which is when the Database is closed

Definition at line 212 of file hamsterdb_int.h.

For internal use

Definition at line 215 of file hamsterdb_int.h.

For internal use

Definition at line 218 of file hamsterdb_int.h.


The documentation for this struct was generated from the following file:
 
 

The hamsterdb API

 

Help us!

Found an information that is missing on this page? Please send a mail.