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


OpenBitSetDISI.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 OPENBITSETDISI_H
8 #define OPENBITSETDISI_H
9 
10 #include "OpenBitSet.h"
11 
12 namespace Lucene {
13 
14 class LPPAPI OpenBitSetDISI : public OpenBitSet {
15 public:
19  OpenBitSetDISI(const DocIdSetIteratorPtr& disi, int32_t maxSize);
20 
23  OpenBitSetDISI(int32_t maxSize);
24 
25  virtual ~OpenBitSetDISI();
26 
28 
29 public:
32  void inPlaceOr(const DocIdSetIteratorPtr& disi);
33 
37  void inPlaceAnd(const DocIdSetIteratorPtr& disi);
38 
41  void inPlaceNot(const DocIdSetIteratorPtr& disi);
42 
45  void inPlaceXor(const DocIdSetIteratorPtr& disi);
46 };
47 
48 }
49 
50 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: OpenBitSetDISI.h:14
OpenBitSetDISI(const DocIdSetIteratorPtr &disi, int32_t maxSize)
Construct an OpenBitSetDISI with its bits set from the doc ids of the given DocIdSetIterator....
OpenBitSetDISI(int32_t maxSize)
Construct an OpenBitSetDISI with no bits set, and a given maximum size one larger than the largest do...
void inPlaceNot(const DocIdSetIteratorPtr &disi)
Perform an in-place NOT with the doc ids from a given DocIdSetIterator, clearing all the bits for eac...
void inPlaceAnd(const DocIdSetIteratorPtr &disi)
Perform an in-place AND with the doc ids from a given DocIdSetIterator, leaving only the bits set for...
void inPlaceXor(const DocIdSetIteratorPtr &disi)
Perform an inplace XOR with the doc ids from a given DocIdSetIterator, flipping all the bits for each...
void inPlaceOr(const DocIdSetIteratorPtr &disi)
Perform an in-place OR with the doc ids from a given DocIdSetIterator, setting the bit for each such ...
An "open" BitSet implementation that allows direct access to the array of words storing the bits.
Definition: OpenBitSet.h:19
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition: LuceneTypes.h:324

clucene.sourceforge.net