#include <stdlib.h>
#include <errno.h>
#include "db_int.h"
#include "db_page.h"
#include "lib.h"
#include "WordDBCompress.h"
#include "WordBitCompress.h"
#include "WordKeyInfo.h"
#include "WordKey.h"
#include "WordRecord.h"
#include "WordDB.h"
#include "HtMaxMin.h"
Go to the source code of this file.
Classes | |
class | WordDBEncoded |
Defines | |
#define | WORD_CMPR_OVERHEAD ((int)sizeof(unsigned char)) |
#define | WORD_CMPR_VAL_ARRAY_SIZE (WORD_CMPR_VAL_LAST + 1) |
#define | WORD_CMPR_VAL_ARRAY_SIZE_BITS 8 |
#define | WORD_CMPR_VAL_FIELDS 1 |
#define | WORD_CMPR_VAL_FLAGS 0 |
#define | WORD_CMPR_VAL_FLAGS_BITS (WORD_CMPR_VAL_LAST + 1) |
#define | WORD_CMPR_VAL_FLAGS_EMPTY (1 << (WORD_CMPR_VAL_LAST + 2)) |
#define | WORD_CMPR_VAL_FLAGS_FIELD(n) (1 << (WORD_CMPR_VAL_FIELDS + (n))) |
#define | WORD_CMPR_VAL_FLAGS_NRECS (1 << (WORD_CMPR_VAL_NRECS)) |
#define | WORD_CMPR_VAL_FLAGS_PGNO (1 << (WORD_CMPR_VAL_PGNO)) |
#define | WORD_CMPR_VAL_FLAGS_PREFIX (1 << (WORD_CMPR_VAL_PREFIX)) |
#define | WORD_CMPR_VAL_FLAGS_RECORD_EQ (1 << (WORD_CMPR_VAL_LAST + 3)) |
#define | WORD_CMPR_VAL_FLAGS_RECORD_NO (1 << (WORD_CMPR_VAL_LAST + 4)) |
#define | WORD_CMPR_VAL_FLAGS_RECORD_STR (1 << (WORD_CMPR_VAL_LAST + 5)) |
#define | WORD_CMPR_VAL_FLAGS_RLENGTH WORD_CMPR_VAL_FLAGS_PGNO |
#define | WORD_CMPR_VAL_FLAGS_RVALUE WORD_CMPR_VAL_FLAGS_NRECS |
#define | WORD_CMPR_VAL_FLAGS_STRING (1 << (WORD_CMPR_VAL_LAST + 1)) |
#define | WORD_CMPR_VAL_FLAGS_SUFFIX (1 << (WORD_CMPR_VAL_SUFFIX)) |
#define | WORD_CMPR_VAL_LAST WORD_CMPR_VAL_SUFFIX |
#define | WORD_CMPR_VAL_NRECS (WORD_CMPR_VAL_PGNO + 1) |
#define | WORD_CMPR_VAL_PGNO (WORD_CMPR_VAL_FIELDS + WORD_KEY_MAX_NFIELDS) |
#define | WORD_CMPR_VAL_PREFIX (WORD_CMPR_VAL_PGNO + 2) |
#define | WORD_CMPR_VAL_RLENGTH WORD_CMPR_VAL_PGNO |
#define | WORD_CMPR_VAL_RVALUE WORD_CMPR_VAL_NRECS |
#define | WORD_CMPR_VAL_SUFFIX (WORD_CMPR_VAL_PGNO + 3) |
Functions | |
static void | cdb___db_pitem (PAGE *pagep, u_int32_t indx, u_int32_t nbytes, DBT *hdr, DBT *data) |
static unsigned int | suffixlength (const String &a, const String &b) |
int | WordDBCompress_compress_c (DB_ENV *, const u_int8_t *inbuff, int inbuff_length, u_int8_t **outbuffp, int *outbuff_lengthp, void *user_data) |
int | WordDBCompress_uncompress_c (DB_ENV *, const u_int8_t *inbuff, int inbuff_length, u_int8_t *outbuff, int outbuff_length, void *user_data) |