X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=1bb24f1469f9ab6faea31dd41a9bc7e449b2feaa;hb=b88909df16157ed1e7859bc3fad6b01520d4865e;hp=f795dafd31667ca2cb8a497cb71a27a527a60280;hpb=e7cf9381a4b902cb2b91053f80ab7899b7d5bb00;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index f795daf..1bb24f1 100644 --- a/index/index.h +++ b/index/index.h @@ -1,4 +1,4 @@ -/* $Id: index.h,v 1.164 2006-05-19 23:45:29 adam Exp $ +/* $Id: index.h,v 1.167 2006-06-13 12:02:08 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -148,25 +148,6 @@ void zebra_lock_prefix (Res res, char *dst); int key_SU_decode (int *ch, const unsigned char *out); int key_SU_encode (int ch, char *out); -#define ENCODE_BUFLEN 768 -struct encode_info { - int sysno; /* previously written values for delta-compress */ - int seqno; - int cmd; - int prevsys; /* buffer for skipping insert/delete pairs */ - int prevseq; - int prevcmd; - int keylen; /* tells if we have an unwritten key in buf, and how long*/ - void *encode_handle; - void *decode_handle; - char buf[ENCODE_BUFLEN]; -}; - -void encode_key_init (struct encode_info *i); -char *encode_key_int (int d, char *bp); -void encode_key_write (char *k, struct encode_info *i, FILE *outf); -void encode_key_flush (struct encode_info *i, FILE *outf); - typedef struct zebra_set *ZebraSet; typedef struct zebra_rank_class { @@ -368,16 +349,16 @@ void extract_get_fname_tmp (ZebraHandle zh, char *fname, int no); void zebra_index_merge (ZebraHandle zh); -ZEBRA_RES buffer_extract_record (ZebraHandle zh, - const char *buf, size_t buf_size, - int delete_flag, - int test_mode, - const char *recordType, - SYSNO *sysno, - const char *match_criteria, - const char *fname, - int force_update, - int allow_update); +ZEBRA_RES zebra_buffer_extract_record(ZebraHandle zh, + const char *buf, size_t buf_size, + int delete_flag, + int test_mode, + const char *recordType, + SYSNO *sysno, + const char *match_criteria, + const char *fname, + int force_update, + int allow_update); #if 0 int extract_rec_in_mem (ZebraHandle zh, const char *recordType, @@ -413,14 +394,7 @@ ZEBRA_RES zebra_snippets_rec_keys(ZebraHandle zh, zebra_rec_keys_t reckeys, ZEBRA_RES zebra_snippets_hit_vector(ZebraHandle zh, const char *setname, zint sysno, zebra_snippets *snippets); -void extract_flushRecordKeys (ZebraHandle zh, SYSNO sysno, - int cmd, zebra_rec_keys_t reckeys, - zint staticrank); -void extract_flushSortKeys (ZebraHandle zh, SYSNO sysno, - int cmd, zebra_rec_keys_t skp); -void extract_schema_add (struct recExtractCtrl *p, Odr_oid *oid); -void extract_token_add (RecWord *p); -int explain_extract (void *handle, Record rec, data1_node *n); +ZEBRA_RES zebra_extract_explain(void *handle, Record rec, data1_node *n); ZEBRA_RES zebra_extract_file(ZebraHandle zh, SYSNO *sysno, const char *fname, int deleteFlag); @@ -471,6 +445,10 @@ ZEBRA_RES zebra_sort_get_ord(ZebraHandle zh, int *ord, int *numerical); +ZEBRA_RES zebra_update_file_match(ZebraHandle zh, const char *path); +ZEBRA_RES zebra_update_from_path(ZebraHandle zh, const char *path); +ZEBRA_RES zebra_delete_from_path(ZebraHandle zh, const char *path); + YAZ_END_CDECL #endif