Lucene++ - a full-featured, c++ search engine
API Documentation


AbstractAllTermDocs.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef ABSTRACTALLTERMDOCS_H
8 #define ABSTRACTALLTERMDOCS_H
9 
10 #include "TermDocs.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI AbstractAllTermDocs : public TermDocs, public LuceneObject {
19 public:
20  AbstractAllTermDocs(int32_t maxDoc);
21  virtual ~AbstractAllTermDocs();
22 
24 
25 protected:
26  int32_t maxDoc;
27  int32_t _doc;
28 
29 public:
30  virtual void seek(const TermPtr& term);
31  virtual void seek(const TermEnumPtr& termEnum);
32  virtual int32_t doc();
33  virtual int32_t freq();
34  virtual bool next();
35  virtual int32_t read(Collection<int32_t> docs, Collection<int32_t> freqs);
36  virtual bool skipTo(int32_t target);
37  virtual void close();
38  virtual bool isDeleted(int32_t doc) = 0;
39 };
40 
41 }
42 
43 #endif
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
boost::shared_ptr< TermEnum > TermEnumPtr
Definition: LuceneTypes.h:235
Base class for enumerating all but deleted docs.
Definition: AbstractAllTermDocs.h:18
Base class for all Lucene classes.
Definition: LuceneObject.h:31
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
TermDocs provides an interface for enumerating ; pairs for a term...
Definition: TermDocs.h:19
int32_t _doc
Definition: AbstractAllTermDocs.h:27

clucene.sourceforge.net