-/* $Id: trunc.c,v 1.42 2004-09-01 15:01:32 heikki Exp $
+/* $Id: trunc.c,v 1.43 2004-09-03 14:59:49 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
if (no == 1)
return rsisamc_create(rset_nmem, kctrl,
zi->reg->isamc, *isam_p);
-
-#if 0 /* NEW_TRUNC */ /* FIXME - Use the new multi_or instead !! */
- else if (no < 10000)
- {
- rset_m_or_parms parms;
-
- parms.key_size = sizeof(struct it_key);
- parms.cmp = key_compare_it;
- parms.isc = zi->reg->isamc;
- parms.isam_positions = isam_p;
- parms.no_isam_positions = no;
- parms.no_save_positions = 100000;
- return rset_create (rset_kind_m_or, &parms);
- }
-#endif
qsort (isam_p, no, sizeof(*isam_p), isamc_trunc_cmp);
}
else if (zi->reg->isamb)
-/* $Id: zebraapi.c,v 1.127 2004-08-25 09:23:36 adam Exp $
+/* $Id: zebraapi.c,v 1.128 2004-09-03 14:59:49 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
/* ---------------------------------------------------------------------------
Sort - a simplified interface, with optional read locks.
- FIXME - This is a horrible name, will conflict with half the applications
*/
int zebra_sort_by_specstr (ZebraHandle zh,
ODR stream,
-/* $Id: isamb.c,v 1.56 2004-08-23 13:06:46 adam Exp $
+/* $Id: isamb.c,v 1.57 2004-09-03 14:59:49 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
void isamb_pp_pos( ISAMB_PP pp, double *current, double *total )
{ /* return an estimate of the current position and of the total number of */
/* occureences in the isam tree, based on the current leaf */
- /* FIXME - Isam-B ought to know how many we have, so we could return */
- /* that directly */
struct ISAMB_block *p = pp->block[pp->level];
assert(total);
assert(current);
*total = pp->block[0]->no_items;
*current = (double) pp->returned_numbers;
- /* use the precise number, since we have it! */
#if ISAMB_DEBUG
logf(LOG_LOG, "isamb_pp_pos returning: cur= %0.1f tot=%0.1f rn="
ZINT_FORMAT, *current, *total, pp->returned_numbers);
-/* $Id: rset.c,v 1.31 2004-09-01 15:01:32 heikki Exp $
+/* $Id: rset.c,v 1.32 2004-09-03 14:59:50 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
RSET rset_create_base(const struct rset_control *sel,
NMEM nmem, const struct key_control *kcontrol)
- /* FIXME - Add keysize and cmp function */
- /* FIXME - Add a general key-func block for cmp, dump, etc */
{
RSET rnew;
NMEM M;
rnew->priv = 0;
rnew->free_list=NULL;
rnew->keycontrol=kcontrol;
-
return rnew;
}