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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BufferedDeletes.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 BUFFEREDDELETES_H
8 #define BUFFEREDDELETES_H
9 
10 #include "Term.h"
11 #include "Query.h"
12 
13 namespace Lucene
14 {
20  {
21  public:
22  BufferedDeletes(bool doTermSort);
23  virtual ~BufferedDeletes();
24 
26 
27  public:
28  int32_t numTerms;
29  MapTermNum terms;
30  MapQueryInt queries;
32  int64_t bytesUsed;
33 
34  public:
35  int32_t size();
36  void update(BufferedDeletesPtr in);
37  void clear();
38  void addBytesUsed(int64_t b);
39  bool any();
40  void remap(MergeDocIDRemapperPtr mapper, SegmentInfosPtr infos, Collection< Collection<int32_t> > docMaps, Collection<int32_t> delCounts, OneMergePtr merge, int32_t mergedDocCount);
41  };
42 
44  class Num : public LuceneObject
45  {
46  public:
47  Num(int32_t num);
48 
49  protected:
50  int32_t num;
51 
52  public:
53  int32_t getNum();
54  void setNum(int32_t num);
55  };
56 }
57 
58 #endif

clucene.sourceforge.net