1 /** @file emptypostlist.cc
2 * @brief A PostList which contains no entries.
4 /* Copyright (C) 2009,2010,2011,2015 Olly Betts
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #include "emptypostlist.h"
30 EmptyPostList::get_termfreq_min() const
36 EmptyPostList::get_termfreq_max() const
42 EmptyPostList::get_termfreq_est() const
47 // OP_WILDCARD which expands to no terms becomes EmptyPostList, and this is
48 // needed if that is used under OP_SYNONYM.
50 EmptyPostList::get_termfreq_est_using_stats(const Xapian::Weight::Internal
&) const
56 EmptyPostList::get_maxweight() const
62 EmptyPostList::get_docid() const
69 EmptyPostList::get_doclength() const
71 return Xapian::termcount(EmptyPostList::get_docid());
75 EmptyPostList::get_unique_terms() const
77 return Xapian::termcount(EmptyPostList::get_docid());
81 EmptyPostList::get_weight() const
88 EmptyPostList::at_end() const
94 EmptyPostList::recalc_maxweight()
96 return EmptyPostList::get_maxweight();
100 EmptyPostList::next(double)
106 EmptyPostList::skip_to(Xapian::docid
, double)
112 EmptyPostList::get_description() const
114 return "EmptyPostList";