2 * Copyright (C) 1994-1999, Index Data
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.11 2001-10-15 19:53:43 adam
8 * POSIX thread updates. First work on term sets.
10 * Revision 1.10 2000/05/15 12:56:37 adam
11 * Record offset of size off_t.
13 * Revision 1.9 2000/03/20 19:08:36 adam
14 * Added remote record import using Z39.50 extended services and Segment
17 * Revision 1.8 1999/11/30 13:48:03 adam
18 * Improved installation. Updated for inclusion of YAZ header files.
20 * Revision 1.7 1999/05/26 07:49:13 adam
23 * Revision 1.6 1999/02/02 14:51:12 adam
24 * Updated WIN32 code specific sections. Changed header.
26 * Revision 1.5 1998/06/08 14:43:16 adam
27 * Added suport for EXPLAIN Proxy servers - added settings databasePath
28 * and explainDatabase to facilitate this. Increased maximum number
29 * of databases and attributes in one register.
31 * Revision 1.4 1998/05/20 10:12:21 adam
32 * Implemented automatic EXPLAIN database maintenance.
33 * Modified Zebra to work with ASN.1 compiled version of YAZ.
35 * Revision 1.3 1998/03/05 08:45:13 adam
36 * New result set model and modular ranking system. Moved towards
37 * descent server API. System information stored as "SGML" records.
39 * Revision 1.2 1996/05/22 08:22:00 adam
40 * Added public ZebDatabaseInfo structure.
42 * Revision 1.1 1996/05/13 14:23:07 adam
43 * Work on compaction of set/use bytes in dictionary.
49 #include <yaz/data1.h>
54 typedef struct zebraExplainInfo *ZebraExplainInfo;
55 typedef struct zebDatabaseInfo ZebDatabaseInfo;
56 ZebraExplainInfo zebraExplain_open (Records records, data1_handle dh,
60 int (*updateFunc)(void *handle,
63 void zebraExplain_close (ZebraExplainInfo zei, int writeFlag /*,
64 int (*updateH)(Record drec, data1_node *n)*/);
65 int zebraExplain_curDatabase (ZebraExplainInfo zei, const char *database);
66 int zebraExplain_newDatabase (ZebraExplainInfo zei, const char *database,
67 int explain_database);
68 int zebraExplain_lookupSU (ZebraExplainInfo zei, int set, int use);
69 int zebraExplain_addSU (ZebraExplainInfo zei, int set, int use);
70 void zebraExplain_addSchema (ZebraExplainInfo zei, Odr_oid *oid);
71 void zebraExplain_recordCountIncrement (ZebraExplainInfo zei, int adjust_num);
72 void zebraExplain_recordBytesIncrement (ZebraExplainInfo zei, int adjust_num);
73 int zebraExplain_runNumberIncrement (ZebraExplainInfo zei, int adjust_num);
74 void zebraExplain_loadAttsets (data1_handle dh, Res res);
75 void zebraExplain_flush (ZebraExplainInfo zei, int writeFlag,
78 int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord,
79 const char **db, int *set, int *use);
86 RecordAttr *rec_init_attr (ZebraExplainInfo zei, Record rec);