2 * @brief Abstract base class for postlists.
4 /* Copyright (C) 2007,2009,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
25 #include <xapian/error.h>
33 PostingIterator::Internal::~Internal() { }
36 PostingIterator::Internal::get_termfreq_est_using_stats(
37 const Xapian::Weight::Internal
&) const
39 throw Xapian::InvalidOperationError(
40 "get_termfreq_est_using_stats() not meaningful for this PostingIterator");
44 PostingIterator::Internal::get_wdf() const
46 throw Xapian::InvalidOperationError("get_wdf() not meaningful for this PostingIterator");
50 PostingIterator::Internal::get_sort_key() const
56 PostingIterator::Internal::get_collapse_key() const
62 PostList::read_position_list()
64 throw Xapian::UnimplementedError("OP_NEAR and OP_PHRASE only currently support terms as subqueries");
68 PostList::open_position_list() const
70 throw Xapian::InvalidOperationError("open_position_list() not meaningful for this PostingIterator");
74 PostList::check(Xapian::docid did
, double w_min
, bool &valid
)
77 return skip_to(did
, w_min
);
81 PostList::count_matching_subqs() const