Remove unused methods
[xapian.git] / xapian-core / api / postlist.cc
blob7f869bbcfe37e8dc5151a0330bb54ec9c852cb00
1 /** @file postlist.cc
2 * @brief Abstract base class for postlists.
3 */
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
21 #include <config.h>
23 #include "postlist.h"
25 #include <xapian/error.h>
27 #include "omassert.h"
29 using namespace std;
31 namespace Xapian {
33 PostingIterator::Internal::~Internal() { }
35 TermFreqs
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");
43 Xapian::termcount
44 PostingIterator::Internal::get_wdf() const
46 throw Xapian::InvalidOperationError("get_wdf() not meaningful for this PostingIterator");
49 const string *
50 PostingIterator::Internal::get_sort_key() const
52 return NULL;
55 const string *
56 PostingIterator::Internal::get_collapse_key() const
58 return NULL;
61 PositionList *
62 PostList::read_position_list()
64 throw Xapian::UnimplementedError("OP_NEAR and OP_PHRASE only currently support terms as subqueries");
67 PositionList *
68 PostList::open_position_list() const
70 throw Xapian::InvalidOperationError("open_position_list() not meaningful for this PostingIterator");
73 PostList *
74 PostList::check(Xapian::docid did, double w_min, bool &valid)
76 valid = true;
77 return skip_to(did, w_min);
80 Xapian::termcount
81 PostList::count_matching_subqs() const
83 Assert(false);
84 return 0;