New result set model and modular ranking system. Moved towards
[idzebra-moved-to-github.git] / index / zinfo.h
1 /*
2  * Copyright (C) 1994-1998, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: zinfo.h,v $
7  * Revision 1.3  1998-03-05 08:45:13  adam
8  * New result set model and modular ranking system. Moved towards
9  * descent server API. System information stored as "SGML" records.
10  *
11  * Revision 1.2  1996/05/22 08:22:00  adam
12  * Added public ZebDatabaseInfo structure.
13  *
14  * Revision 1.1  1996/05/13 14:23:07  adam
15  * Work on compaction of set/use bytes in dictionary.
16  *
17  */
18 #ifndef ZINFO_H
19 #define ZINFO_H
20
21 #include <data1.h>
22 #include "recindex.h"
23
24 typedef struct zebraExplainInfo *ZebraExplainInfo;
25 typedef struct zebDatabaseInfo ZebDatabaseInfo;
26 ZebraExplainInfo zebraExplain_open (Records records, data1_handle,
27                                     int writeFlag);
28 void zebraExplain_close (ZebraExplainInfo zei, int writeFlag);
29 int zebraExplain_curDatabase (ZebraExplainInfo zei, const char *database);
30 int zebraExplain_newDatabase (ZebraExplainInfo zei, const char *database);
31 int zebraExplain_lookupSU (ZebraExplainInfo zei, int set, int use);
32 int zebraExplain_addSU (ZebraExplainInfo zei, int set, int use);
33 void zebraExplain_recordCountIncrement (ZebraExplainInfo zei, int adjust_num);
34 void zebraExplain_recordBytesIncrement (ZebraExplainInfo zei, int adjust_num);
35 int zebraExplain_runNumberIncrement (ZebraExplainInfo zei, int adjust_num);
36
37 typedef struct {
38     int recordSize;
39     int recordOffset;
40     int runNumber;
41 } RecordAttr;
42 RecordAttr *rec_init_attr (ZebraExplainInfo zei, Record rec);
43
44 #endif