backends/flint/flint_types.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FLINT_DEFAULT_BLOCK_SIZE   8192
 The default block size to use in a B-tree table.

Typedefs

typedef unsigned char byte
typedef unsigned int flint_blocksize_t
typedef unsigned int flint_revision_number_t
 A type used to store a revision number for a table.
typedef unsigned int flint_tablesize_t
 A type used to store the number of entries in a table.
typedef unsigned int flint_doclen_t
 An integer type for storing the length of a document - ie, the sum of the wdfs of the terms in the document.
typedef unsigned long long int flint_totlen_t
 An integer type which can store the sum of the lengths of the documents in the database.


Define Documentation

#define FLINT_DEFAULT_BLOCK_SIZE   8192

The default block size to use in a B-tree table.

If this is changed, be sure to update the API documentation correspondingly.

Definition at line 75 of file flint_types.h.

Referenced by FlintTable::set_block_size().


Typedef Documentation

typedef unsigned char byte

Definition at line 25 of file flint_types.h.

typedef unsigned int flint_blocksize_t

Definition at line 41 of file flint_types.h.

typedef unsigned int flint_revision_number_t

A type used to store a revision number for a table.

A table's revision number increases monotonically, incrementing by one each time a modification is applied to the table.

FIXME: ensure that this is of a suitable minimum size - 32 bits is satisfactory in most cases, but in extreme cases could cause the revision number to roll over after a few years. It would be better to use 64 bits (and / or to ensure that rolling over causes no problem).

Definition at line 53 of file flint_types.h.

typedef unsigned int flint_tablesize_t

A type used to store the number of entries in a table.

Again, this must be of suitable minimum size.

Definition at line 59 of file flint_types.h.

typedef unsigned int flint_doclen_t

An integer type for storing the length of a document - ie, the sum of the wdfs of the terms in the document.

Definition at line 64 of file flint_types.h.

typedef unsigned long long int flint_totlen_t

An integer type which can store the sum of the lengths of the documents in the database.

Definition at line 69 of file flint_types.h.


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.