File file_hash.c
FileList > cubrid > src > executables > file_hash.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <stddef.h>
#include "utility.h"
#include "error_manager.h"
#include "file_hash.h"
#include "filesys_temp.hpp"
#include "memory_alloc.h"
#include "object_representation.h"
#include "message_catalog.h"
Public Static Attributes
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)
|
Public Static Functions
Macros
| Type |
Name |
| define |
ISPOWER2 (x) ((([**x**](broker__monitor_8c.md#function-timeout)) & ([**x**](broker__monitor_8c.md#function-timeout)-1)) == 0)
|
| define |
NPRIMES 100
|
Public Static Attributes Documentation
variable fh_Primes
variable null_int
variable null_oid
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
)
Public Static Functions Documentation
function fh_bitset
static void fh_bitset (
FH_TABLE * ht,
int page
)
function fh_bittest
static int fh_bittest (
FH_TABLE * ht,
int page
)
function fh_calculate_htsize
static int fh_calculate_htsize (
int htsize
)
function fh_fetch_page
static FH_PAGE_HDR * fh_fetch_page (
FH_TABLE * ht,
int page
)
function fh_read_page
static FH_PAGE_HDR * fh_read_page (
FH_TABLE * ht,
int page
)
function fh_write_page
static FH_PAGE_HDR * fh_write_page (
FH_TABLE * ht,
FH_PAGE_HDR * pg_hdr
)
Macro Definition Documentation
define ISPOWER2
#define ISPOWER2 (
x
) `((( x ) & ( x -1)) == 0)`
define NPRIMES
The documentation for this class was generated from the following file cubrid/src/executables/file_hash.c