matcher/msetpostlist.h

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2006,2007 Olly Betts
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00019  */
00020 
00021 #ifndef XAPIAN_INCLUDED_MSETPOSTLIST_H
00022 #define XAPIAN_INCLUDED_MSETPOSTLIST_H
00023 
00024 #include <xapian/enquire.h>
00025 
00026 #include "omenquireinternal.h"
00027 #include "postlist.h"
00028 
00035 class MSetPostList : public PostList {
00037     void operator=(const MSetPostList &);
00038 
00040     MSetPostList(const MSetPostList &);
00041 
00043     int cursor;
00044 
00046     Xapian::Internal::RefCntPtr<Xapian::MSet::Internal> mset_internal;
00047 
00052     bool decreasing_relevance;
00053 
00054   public:
00055     MSetPostList(const Xapian::MSet mset, bool decreasing_relevance_)
00056         : cursor(-1), mset_internal(mset.internal),
00057           decreasing_relevance(decreasing_relevance_) { }
00058 
00059     Xapian::doccount get_termfreq_min() const;
00060 
00061     Xapian::doccount get_termfreq_est() const;
00062 
00063     Xapian::doccount get_termfreq_max() const;
00064 
00065     Xapian::weight get_maxweight() const;
00066 
00067     Xapian::docid get_docid() const;
00068 
00069     Xapian::weight get_weight() const;
00070 
00071     const string * get_collapse_key() const;
00072 
00074     Xapian::doclength get_doclength() const;
00075 
00076     Xapian::weight recalc_maxweight();
00077 
00078     PostList *next(Xapian::weight w_min);
00079 
00081     PostList *skip_to(Xapian::docid did, Xapian::weight w_min);
00082 
00083     bool at_end() const;
00084 
00085     string get_description() const;
00086 };
00087 
00088 #endif /* XAPIAN_INCLUDED_MSETPOSTLIST_H */

Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.