#include <Searcher.hpp>
Public Types | |
typedef boost::shared_ptr < Searcher > | SharedPointer |
Public Member Functions | |
Searcher () | |
virtual | ~Searcher () |
virtual void | init (const Configuration &config)=0 |
virtual Iterator::SharedPointer | generic_search (const std::string &key)=0 |
virtual Iterator::SharedPointer | generic_search (const std::string &key, Quantile::Order order)=0 |
virtual Iterator::SharedPointer | generic_search (const std::string &key, size_t length)=0 |
virtual const Quantile & | quantile (const std::string &key) const =0 |
virtual const Vocabulary & | vocabulary () const =0 |
virtual const Header & | header () const =0 |
An abstract class to search an inverted index. In contrast to the template IndexSearcher, this class is used as an generic interface which is needed for the JNI binding.
Created on Jun 22, 2008
Definition at line 28 of file Searcher.hpp.
typedef boost::shared_ptr<Searcher> aitools::invertedindex::Searcher::SharedPointer |
Definition at line 32 of file Searcher.hpp.
aitools::invertedindex::Searcher::Searcher | ( | ) | [inline] |
The explicit constructor.
Definition at line 39 of file Searcher.hpp.
virtual aitools::invertedindex::Searcher::~Searcher | ( | ) | [inline, virtual] |
The destructor.
Definition at line 44 of file Searcher.hpp.
virtual Iterator::SharedPointer aitools::invertedindex::Searcher::generic_search | ( | const std::string & | key, | |
size_t | length | |||
) | [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.
virtual Iterator::SharedPointer aitools::invertedindex::Searcher::generic_search | ( | const std::string & | key, | |
Quantile::Order | order | |||
) | [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.
virtual Iterator::SharedPointer aitools::invertedindex::Searcher::generic_search | ( | const std::string & | key | ) | [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.
virtual const Header& aitools::invertedindex::Searcher::header | ( | ) | const [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.
virtual void aitools::invertedindex::Searcher::init | ( | const Configuration & | config | ) | [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.
virtual const Quantile& aitools::invertedindex::Searcher::quantile | ( | const std::string & | key | ) | const [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.
virtual const Vocabulary& aitools::invertedindex::Searcher::vocabulary | ( | ) | const [pure virtual] |
Implemented in aitools::invertedindex::IndexSearcher< Value >.