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

DocIdBitSet.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 DOCIDBITSET_H
8 #define DOCIDBITSET_H
9
10 #include "DocIdSet.h"
11
12 namespace Lucene {
13
15 class LPPAPI DocIdBitSet : public DocIdSet {
16 public:
17 DocIdBitSet();
18 DocIdBitSet(const BitSetPtr& bitSet);
19
20 virtual ~DocIdBitSet();
21
22 LUCENE_CLASS(DocIdBitSet);
23
24 protected:
25 BitSetPtr bitSet;
26
27 public:
28 virtual DocIdSetIteratorPtr iterator();
29
31 virtual bool isCacheable();
32
34 BitSetPtr getBitSet();
35
36 virtual bool equals(const LuceneObjectPtr& other);
37 virtual int32_t hashCode();
38 virtual LuceneObjectPtr clone(const LuceneObjectPtr& other = LuceneObjectPtr());
39 };
40
41 }
42
43 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::BitSetPtr
boost::shared_ptr< BitSet > BitSetPtr
Definition: LuceneTypes.h:522
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
DocIdSet.h
Lucene::DocIdSet
A DocIdSet contains a set of doc ids. Implementing classes must only implement iterator to provide ac...
Definition: DocIdSet.h:16
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition: LuceneTypes.h:324
Lucene::DocIdBitSet
Simple DocIdSet and DocIdSetIterator backed by a BitSet.
Definition: DocIdBitSet.h:15

clucene.sourceforge.net