xapian-core
1.4.27
backends
glass
glass_defs.h
Go to the documentation of this file.
1
4
/* Copyright (C) 2010,2014,2015,2017,2024 Olly Betts
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef XAPIAN_INCLUDED_GLASS_DEFS_H
22
#define XAPIAN_INCLUDED_GLASS_DEFS_H
23
24
#include "
internaltypes.h
"
25
27
#define GLASS_TABLE_EXTENSION "glass"
28
30
#define GLASS_DEFAULT_BLOCKSIZE 8192
31
33
#define GLASS_MIN_BLOCKSIZE 2048
34
36
#define GLASS_MAX_BLOCKSIZE 65536
37
43
#define GLASS_BTREE_CURSOR_LEVELS 10
44
50
#define GLASS_MAX_DOCID Xapian::docid(0xffffffffffffffff)
51
52
namespace
Glass
{
53
enum
table_type
{
54
POSTLIST
,
55
DOCDATA
,
56
TERMLIST
,
57
POSITION
,
58
SPELLING
,
59
SYNONYM
,
60
MAX_
61
};
62
}
63
65
typedef
uint4
glass_block_t
;
66
68
typedef
uint4
glass_revision_number_t
;
69
71
typedef
unsigned
long
long
glass_tablesize_t
;
72
73
#endif // XAPIAN_INCLUDED_GLASS_DEFS_H
Glass::SPELLING
Definition:
glass_defs.h:58
Glass::table_type
table_type
Definition:
glass_defs.h:53
glass_revision_number_t
uint4 glass_revision_number_t
The revision number of a glass database.
Definition:
glass_defs.h:68
Glass::POSTLIST
Definition:
glass_defs.h:54
glass_tablesize_t
unsigned long long glass_tablesize_t
How many entries there are in a table.
Definition:
glass_defs.h:71
Glass
Definition:
glass_cursor.h:38
uint4
uint32_t uint4
Definition:
internaltypes.h:32
Glass::POSITION
Definition:
glass_defs.h:57
Glass::SYNONYM
Definition:
glass_defs.h:59
Glass::DOCDATA
Definition:
glass_defs.h:55
Glass::TERMLIST
Definition:
glass_defs.h:56
Glass::MAX_
Definition:
glass_defs.h:60
glass_block_t
uint4 glass_block_t
A block number in a glass Btree file.
Definition:
glass_defs.h:65
internaltypes.h
Types used internally.
Generated by
Doxygen 1.8.13