1 /* This file is part of Pazpar2.
2 Copyright (C) 2006-2009 Index Data
4 Pazpar2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #include "pazpar2_config.h"
28 struct reclist_bucket **hashtable;
32 struct record_cluster **flatlist;
40 // This is a recipe for sorting. First node in list has highest priority
41 struct reclist_sortparms
44 enum conf_sortkey_type type;
46 struct reclist_sortparms *next;
49 struct reclist_sortparms *
50 reclist_sortparms_insert_field_id(NMEM nmem,
51 struct reclist_sortparms **sortparms,
53 enum conf_sortkey_type type,
57 struct reclist_sortparms *
58 reclist_sortparms_insert(NMEM nmem,
59 struct reclist_sortparms **sortparms,
60 struct conf_service * service,
65 struct reclist *reclist_create(NMEM, int numrecs);
66 struct record_cluster *reclist_insert( struct reclist *tl,
67 struct conf_service *service,
68 struct record *record,
69 char *merge_key, int *total);
70 void reclist_sort(struct reclist *l, struct reclist_sortparms *parms);
71 struct record_cluster *reclist_read_record(struct reclist *l);
72 void reclist_rewind(struct reclist *l);
73 struct reclist_sortparms *reclist_parse_sortparms(NMEM nmem, const char *parms);
80 * c-file-style: "Stroustrup"
81 * indent-tabs-mode: nil
83 * vim: shiftwidth=4 tabstop=8 expandtab