-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathretreive.h
64 lines (54 loc) · 2.75 KB
/
retreive.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// $Id: retreive.h,v 2.11 2004/05/28 19:22:06 o Exp $
// philologic 2.8 -- TEI XML/SGML Full-text database engine
// Copyright (C) 2004 University of Chicago
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the Affero General Public License as published by
// Affero, Inc.; either version 1 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Affero General Public License for more details.
//
// You should have received a copy of the Affero General Public License
// along with this program; if not, write to Affero, Inc.,
// 510 Third Street, Suite 225, San Francisco, CA 94107 USA.
/* retreive.h: header file for the hit retreival subsystem */
#ifdef RETREIVE_H
#error "retreive.h multiply included"
#else
#define RETREIVE_H
#ifndef C_H
#include "c.h"
#endif
#ifndef SEARCH_H
#include "search.h"
#endif
#define RETR_BLK_OK 0
#define RETR_BLK_CLEAN 1
#define RETR_HITS_CACHED 2
#define RETR_END_OF_MAP 4
#define RETR_RESMAP_FULL 8
#define RETR_BUMMER 16
#define RETR_REACHED_NEXT_BLOCK_BOUNDARY 32
extern N32 retreive_hits ( Search s, N level, Gmap, Gmap );
N32 retreive_hits ( Search s, N level, Gmap map, Gmap res );
Z32 process_block_unit ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res );
Z32 process_hit_block ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res );
Gmap retreive_cached_hits ( Search s, N8 bn, Word w, N32 n, Gmap map, N32 *howmany );
Gmap retreive_hit_block ( Search s, N8 bn, Word w, N32 n, Gmap map, N32 *howmany );
Z32 filternload_hits ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap hits, N32 howmany, Gmap res ) ;
Z32 load_hits ( Search s, Gmap hits, N32 howmany, Gmap res );
Z32 process_single_entry ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res );
Z32 filter_single_entry ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res );
Z32 process_hit_block_booleannot ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res );
Gmap retreive_hit_block_booleannot ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res, N32 *howmany );
Gmap retreive_cached_hits_booleannot ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res, N32 *howmany );
Z32 process_single_entry_booleannot ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap res );
Z32 filternload_booleannot ( Search s, N8 bn, Word w, N32 n, Gmap map, Gmap hits, Z32 howmany, Gmap res );
Z32 chkstatus_EOM ( Z32 status );
Z32 chkstatus_CACH ( Z32 status );
Z32 chkstatus_ERR ( Z32 status );
#endif