ham_record_filter_t Struct Reference
[hamsterdb Enhanced API]

#include <hamsterdb_int.h>

Data Fields

void * userdata
ham_record_filter_before_insert_cb_t before_write_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 265 of file hamsterdb_int.h.


Field Documentation

For internal use

Definition at line 280 of file hamsterdb_int.h.

For internal use

Definition at line 283 of file hamsterdb_int.h.

Definition at line 283 of file hamsterdb_int.h.

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

Definition at line 274 of file hamsterdb_int.h.

The function which is called before the record is inserted

Definition at line 271 of file hamsterdb_int.h.

The function which is when the Database is closed

Definition at line 277 of file hamsterdb_int.h.

The user data

Definition at line 268 of file hamsterdb_int.h.


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

Generated on Wed Apr 14 20:37:56 2010 for hamsterdb Embedded Database by  doxygen 1.6.1