hamsterdb_int.h File Reference

Internal hamsterdb Embedded Storage functions. More...

#include <ham/hamsterdb.h>

Go to the source code of this file.

Data Structures

struct  ham_file_filter_t
struct  ham_record_filter_t

Defines

#define HAM_DEFAULT_DATABASE_NAME   (0xf000)
#define HAM_FIRST_DATABASE_NAME   (0xf001)
#define HAM_DUMMY_DATABASE_NAME   (0xf002)
#define HAM_PARAM_GET_STATISTICS   0x00000206
#define HAM_HINT_UBER_FAST_ACCESS   0x00040000
#define HAM_HINT_RANDOM_ACCESS   0x00020000
#define HAM_HINT_SEQUENTIAL   0x00010000

Typedefs

typedef struct ham_file_filter_t ham_file_filter_t
typedef ham_status_t(* ham_file_filter_before_write_cb_t )(ham_env_t *env, ham_file_filter_t *filter, ham_u8_t *file_data, ham_size_t file_size)
typedef ham_status_t(* ham_file_filter_after_read_cb_t )(ham_env_t *env, ham_file_filter_t *filter, ham_u8_t *file_data, ham_size_t file_size)
typedef void(* ham_file_filter_close_cb_t )(ham_env_t *env, ham_file_filter_t *filter)
typedef struct ham_record_filter_t ham_record_filter_t
typedef ham_status_t(* ham_record_filter_before_insert_cb_t )(ham_db_t *db, ham_record_filter_t *filter, ham_record_t *record)
typedef ham_status_t(* ham_record_filter_after_read_cb_t )(ham_db_t *db, ham_record_filter_t *filter, ham_record_t *record)
typedef void(* ham_record_filter_close_cb_t )(ham_db_t *db, ham_record_filter_t *filter)
typedef struct ham_device_t ham_device_t

Functions

HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_check_integrity (ham_db_t *db, ham_txn_t *txn)
HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_calc_maxkeys_per_page (ham_db_t *db, ham_size_t *keycount, ham_u16_t keysize)
HAM_EXPORT void HAM_CALLCONV ham_set_context_data (ham_db_t *db, void *data)
HAM_EXPORT void *HAM_CALLCONV ham_get_context_data (ham_db_t *db)
HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_env_add_file_filter (ham_env_t *env, ham_file_filter_t *filter)
HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_env_remove_file_filter (ham_env_t *env, ham_file_filter_t *filter)
HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_add_record_filter (ham_db_t *db, ham_record_filter_t *filter)
HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_remove_record_filter (ham_db_t *db, ham_record_filter_t *filter)
HAM_EXPORT ham_status_t
HAM_CALLCONV 
ham_env_set_device (ham_env_t *env, ham_device_t *device)
HAM_EXPORT ham_db_t *HAM_CALLCONV ham_cursor_get_database (ham_cursor_t *cursor)

Detailed Description

Internal hamsterdb Embedded Storage functions.

Copyright (C) 2005-2010 Christoph Rupp (chris@crupp.de).

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See files COPYING.* for License information.

Author:
Christoph Rupp, chris@crupp.de

Please be aware that the interfaces in this file are mostly for internal use. Unlike those in hamsterdb.h they are not stable and can be changed with every new version.

Definition in file hamsterdb_int.h.


Define Documentation

#define HAM_HINT_RANDOM_ACCESS   0x00020000

Definition at line 379 of file hamsterdb_int.h.

#define HAM_HINT_SEQUENTIAL   0x00010000

Definition at line 381 of file hamsterdb_int.h.

#define HAM_HINT_UBER_FAST_ACCESS   0x00040000

Definition at line 377 of file hamsterdb_int.h.

Generated by  doxygen 1.6.3