1 /* $Id: record.h,v 1.2 2007-04-20 14:37:17 marc Exp $
2 Copyright (c) 2006-2007, Index Data.
4 This file is part of Pazpar2.
6 Pazpar2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Pazpar2; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38 struct record_metadata {
39 union data_types data;
40 struct record_metadata *next; // next item of this name
44 struct client *client;
45 struct record_metadata **metadata; // Array mirrors list of metadata fields in config
46 union data_types **sortkeys; // Array mirrors list of sortkey fields in config
47 struct record *next; // Next in cluster of merged records
51 struct record * record_create(NMEM nmem, int num_metadata, int num_sortkeys);
53 struct record_metadata * record_add_metadata_fieldno(NMEM nmem,
54 struct record * record,
56 union data_types data);
60 struct record_metadata **metadata; // Array mirrors list of metadata fields in config
61 union data_types **sortkeys;
64 int *term_frequency_vec;
65 int recid; // Set-specific ID for this record
66 struct record *records;
75 * indent-tabs-mode: nil
77 * vim: shiftwidth=4 tabstop=8 expandtab