source: main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mg/src/text/invf.h@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 13 years ago

Committing 64 bit changes into the branch

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/**************************************************************************
2 *
3 * invf.h -- Data structures for inverted files
4 * Copyright (C) 1994 Neil Sharman
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., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: invf.h 23508 2010-12-17 01:04:10Z sjm84 $
21 *
22 **************************************************************************/
23
24
25
26#ifndef H_INVF
27#define H_INVF
28
29/* NOTE: This does not include the magic number */
30struct invf_dict_header
31 {
32 mg_u_long lookback;
33 mg_u_long dict_size;
34 mg_u_long total_bytes;
35 mg_u_long index_string_bytes;
36 double input_bytes; /* [RJM 07/97: 4G limit] */
37 mg_u_long num_of_docs;
38 mg_u_long static_num_of_docs;
39 mg_u_long num_of_words;
40 mg_u_long stemmer_num;
41 mg_u_long stem_method;
42 };
43
44struct stem_dict_header
45 {
46 mg_u_long lookback;
47 mg_u_long block_size;
48 mg_u_long num_blocks;
49 mg_u_long blocks_start;
50 mg_u_long index_chars;
51 mg_u_long num_of_docs;
52 mg_u_long static_num_of_docs;
53 mg_u_long num_of_words;
54 mg_u_long stemmer_num;
55 mg_u_long stem_method;
56 mg_u_long indexed; /* [RPAP - Jan 97: Stem Index Change] */
57 };
58
59struct invf_file_header
60 {
61 mg_u_long no_of_words;
62 mg_u_long no_of_ptrs;
63 mg_u_long skip_mode;
64 mg_u_long params[16];
65 mg_u_long InvfLevel;
66 };
67
68/* [RPAP - Jan 97: Stem Index Change] */
69struct stem_idx_header
70 {
71 mg_u_long lookback;
72 mg_u_long block_size;
73 mg_u_long num_blocks;
74 mg_u_long blocks_start;
75 mg_u_long index_chars;
76 mg_u_long num_of_words;
77 };
78
79#endif
Note: See TracBrowser for help on using the repository browser.