hamsterdb Embedded Database 1.1.15
Data Fields
ham_record_filter_t Struct Reference

#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 276 of file hamsterdb_int.h.


Field Documentation

For internal use

Definition at line 291 of file hamsterdb_int.h.

For internal use

Definition at line 294 of file hamsterdb_int.h.

Definition at line 294 of file hamsterdb_int.h.

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

Definition at line 285 of file hamsterdb_int.h.

The function which is called before the record is inserted

Definition at line 282 of file hamsterdb_int.h.

The function which is when the Database is closed

Definition at line 288 of file hamsterdb_int.h.

The user data

Definition at line 279 of file hamsterdb_int.h.


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