X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fidzebra%2Fdict.h;h=44a5fd093233db368797ed634cd6ad07593e8e49;hb=5d1021b2b70231c8f36fd7ec4583c4816a4f25d6;hp=968afbf3fec42ab3198ed38ae27b61c7ea0953e1;hpb=8707aaa9f358bc23e4d2adf4644f7e52c6440af8;p=idzebra-moved-to-github.git diff --git a/include/idzebra/dict.h b/include/idzebra/dict.h index 968afbf..44a5fd0 100644 --- a/include/idzebra/dict.h +++ b/include/idzebra/dict.h @@ -1,5 +1,5 @@ -/* $Id: dict.h,v 1.11 2006-09-05 12:50:56 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: dict.h,v 1.14 2007-01-15 20:08:24 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -187,6 +187,33 @@ void dict_grep_cmap(Dict dict, void *vp, YAZ_EXPORT int dict_copy_compact(BFiles bfs, const char *from, const char *to); +/** \brief reset Dictionary (makes it empty) + \param dict dictionary handle +*/ +YAZ_EXPORT +void dict_clean(Dict dict); + +/** \brief get number of lookup operations, since dict_open + \param dict dictionary handle + \returns number of operatons +*/ +YAZ_EXPORT +zint dict_get_no_lookup(Dict dict); + +/** \brief get number of insert operations, since dict_open + \param dict dictionary handle + \returns number of operatons +*/ +YAZ_EXPORT +zint dict_get_no_insert(Dict dict); + +/** \brief get number of page split operations, since dict_open + \param dict dictionary handle + \returns number of operatons +*/ +YAZ_EXPORT +zint dict_get_no_split(Dict dict); + YAZ_END_CDECL #endif