Skip to content

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

Type Name
struct fh_entry
struct fh_info
struct fh_page_hdr
struct fh_table

Public Types

Type Name
typedef int(* CMP_FUNC
typedef void * FH_DATA
typedef struct fh_entry FH_ENTRY
typedef struct fh_entry * FH_ENTRY_PTR
typedef unsigned int FH_FILE_POS
typedef struct fh_info FH_INFO
typedef void * FH_KEY
enum FH_KEY_TYPE
typedef struct fh_page_hdr FH_PAGE_HDR
typedef struct fh_table FH_TABLE
typedef unsigned int(* HASH_FUNC

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

Type Name
define INVALID_FILE_POS ([**FH\_FILE\_POS**](file__hash_8h.md#typedef-fh_file_pos))~0
define fh_intk_data fh\_key\_data.fh\_intkey.data
define fh_intk_key fh\_key\_data.fh\_intkey.key
define fh_oidk_data fh\_key\_data.fh\_oidkey.data
define fh_oidk_key fh\_key\_data.fh\_oidkey.key

Public Types Documentation

typedef CMP_FUNC

typedef int(* CMP_FUNC) (const void *key1, const void *key2);

typedef FH_DATA

typedef void* 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

typedef void* 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