00001 /* valuestats.h: Statistics about values. 00002 * 00003 * Copyright 2008 Lemur Consulting Ltd 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00018 * USA 00019 */ 00020 00021 #ifndef XAPIAN_INCLUDED_VALUESTATS_H 00022 #define XAPIAN_INCLUDED_VALUESTATS_H 00023 00024 #include <string> 00025 #include "xapian/types.h" 00026 00028 struct ValueStats { 00032 Xapian::doccount freq; 00033 00036 std::string lower_bound; 00037 00040 std::string upper_bound; 00041 00043 ValueStats() : freq(0), lower_bound(), upper_bound() {} 00044 00047 void clear() { 00048 freq = 0; 00049 lower_bound.resize(0); 00050 upper_bound.resize(0); 00051 } 00052 }; 00053 00054 #endif /* XAPIAN_INCLUDED_VALUESTATS_H */