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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OpenBitSetIterator.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 OPENBITSETITERATOR_H
8 #define OPENBITSETITERATOR_H
9 
10 #include "DocIdSetIterator.h"
11 
12 namespace Lucene
13 {
17  class LPPAPI OpenBitSetIterator : public DocIdSetIterator
18  {
19  public:
21  OpenBitSetIterator(LongArray bits, int32_t numWords);
22  virtual ~OpenBitSetIterator();
23 
25 
26  protected:
27  LongArray arr;
28  int32_t words;
29  int32_t i;
30  int64_t word;
31  int32_t wordShift;
32  int32_t indexArray;
33  int32_t curDocId;
34 
39  static const int32_t bitlist[];
40 
41  public:
42  virtual int32_t nextDoc();
43  virtual int32_t advance(int32_t target);
44  virtual int32_t docID();
45 
46  protected:
48  void shift();
49  };
50 }
51 
52 #endif

clucene.sourceforge.net