#include "hash_auto.h"
#include "hash_ext.h"
#include "db_am.h"
Go to the source code of this file.
Classes | |
struct | cursor_t |
struct | hash_t |
Defines | |
#define | ALLOCPGNO 0x60 |
#define | BUCKET_INVALID 0xFFFFFFFF |
#define | BUCKET_TO_PAGE(I, B) ((B) + (I)->hdr->spares[CDB___db_log2((B)+1)]) |
#define | CHARKEY "%$sniglet^&" |
#define | DELOVFL 0x50 |
#define | DELPAIR 0x30 |
#define | DELPGNO 0x70 |
#define | DUP_SIZE(len) ((len) + 2 * sizeof(db_indx_t)) |
#define | H_CONTINUE 0x0001 |
#define | H_DELETED 0x0002 |
#define | H_DIRTY 0x0004 |
#define | H_DUPONLY 0x0008 |
#define | H_EXPAND 0x0010 |
#define | H_ISDUP 0x0020 |
#define | H_NEXT_NODUP 0x0040 |
#define | H_NOMORE 0x0080 |
#define | H_OK 0x0100 |
#define | IS_VALID(C) ((C)->bucket != BUCKET_INVALID) |
#define | ISBIG(I, N) (((N) > ((I)->hdr->dbmeta.pagesize / MINFILL)) ? 1 : 0) |
#define | MAX_PAGES(H) UINT32_T_MAX |
#define | MINFILL 4 |
#define | NDX_INVALID 0xFFFF |
#define | OPCODE_OF(N) (N & ~PAIR_MASK) |
#define | PAIR_DATAMASK 0x2 |
#define | PAIR_DUPMASK 0x4 |
#define | PAIR_ISDATABIG(N) (N & PAIR_DATAMASK) |
#define | PAIR_ISDATADUP(N) (N & PAIR_DUPMASK) |
#define | PAIR_ISKEYBIG(N) (N & PAIR_KEYMASK) |
#define | PAIR_KEYMASK 0x1 |
#define | PAIR_MASK 0xf |
#define | PUTOVFL 0x40 |
#define | PUTPAIR 0x20 |
#define | SPLITNEW 0x90 |
#define | SPLITOLD 0x80 |
Typedefs | |
typedef struct hash_t | HASH |
typedef struct cursor_t | HASH_CURSOR |