xapian-core  1.4.27
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 {
61  };
62 }
63 
66 
69 
71 typedef unsigned long long glass_tablesize_t;
72 
73 #endif // XAPIAN_INCLUDED_GLASS_DEFS_H
table_type
Definition: glass_defs.h:53
uint4 glass_revision_number_t
The revision number of a glass database.
Definition: glass_defs.h:68
unsigned long long glass_tablesize_t
How many entries there are in a table.
Definition: glass_defs.h:71
uint32_t uint4
Definition: internaltypes.h:32
uint4 glass_block_t
A block number in a glass Btree file.
Definition: glass_defs.h:65
Types used internally.