File file_hash.h
FileList > cubrid > src > executables > file_hash.h
Go to the source code of this file
#include "config.h"
#include "error_manager.h"
#include "oid.h"
Classes
Public Types
Public Functions
| Type |
Name |
| FH_TABLE * |
fh_create (const char * name, int est_size, int page_size, int cached_pages, const char * hash_filename, FH_KEY_TYPE key_type, int data_size, HASH_FUNC hfun, CMP_FUNC cmpfun)
|
| void |
fh_destroy (FH_TABLE * ht)
|
| void |
fh_dump (FH_TABLE * ht)
|
| int |
fh_get (FH_TABLE * ht, FH_KEY key, FH_DATA * data)
|
| int |
fh_put (FH_TABLE * ht, FH_KEY key, FH_DATA data)
|
Macros
Public Types Documentation
typedef CMP_FUNC
typedef int(* CMP_FUNC) (const void *key1, const void *key2);
typedef FH_DATA
typedef FH_ENTRY
typedef struct fh_entry FH_ENTRY;
typedef FH_ENTRY_PTR
typedef struct fh_entry* FH_ENTRY_PTR;
typedef FH_FILE_POS
typedef unsigned int FH_FILE_POS;
typedef FH_INFO
typedef struct fh_info FH_INFO;
typedef FH_KEY
enum FH_KEY_TYPE
enum FH_KEY_TYPE {
FH_OID_KEY = 1,
FH_INT_KEY = 2
};
typedef FH_PAGE_HDR
typedef struct fh_page_hdr FH_PAGE_HDR;
typedef FH_TABLE
typedef struct fh_table FH_TABLE;
typedef HASH_FUNC
typedef unsigned int(* HASH_FUNC) (const void *info, unsigned int htsize);
Public Functions Documentation
function fh_create
FH_TABLE * fh_create (
const char * name,
int est_size,
int page_size,
int cached_pages,
const char * hash_filename,
FH_KEY_TYPE key_type,
int data_size,
HASH_FUNC hfun,
CMP_FUNC cmpfun
)
function fh_destroy
void fh_destroy (
FH_TABLE * ht
)
function fh_dump
void fh_dump (
FH_TABLE * ht
)
function fh_get
int fh_get (
FH_TABLE * ht,
FH_KEY key,
FH_DATA * data
)
function fh_put
int fh_put (
FH_TABLE * ht,
FH_KEY key,
FH_DATA data
)
Macro Definition Documentation
define INVALID_FILE_POS
#define INVALID_FILE_POS `( FH_FILE_POS )~0`
define fh_intk_data
#define fh_intk_data `fh_key_data.fh_intkey.data`
define fh_intk_key
#define fh_intk_key `fh_key_data.fh_intkey.key`
define fh_oidk_data
#define fh_oidk_data `fh_key_data.fh_oidkey.data`
define fh_oidk_key
#define fh_oidk_key `fh_key_data.fh_oidkey.key`
The documentation for this class was generated from the following file cubrid/src/executables/file_hash.h