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

BufferedDeletes.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 BUFFEREDDELETES_H
8 #define BUFFEREDDELETES_H
9
10 #include "Term.h"
11 #include "Query.h"
12
13 namespace Lucene {
14
19 class BufferedDeletes : public LuceneObject {
20 public:
21 BufferedDeletes(bool doTermSort);
22 virtual ~BufferedDeletes();
23
24 LUCENE_CLASS(BufferedDeletes);
25
26 public:
27 int32_t numTerms;
28 MapTermNum terms;
29 MapQueryInt queries;
30 Collection<int32_t> docIDs;
31 int64_t bytesUsed;
32
33 public:
34 int32_t size();
35 void update(const BufferedDeletesPtr& in);
36 void clear();
37 void addBytesUsed(int64_t b);
38 bool any();
39 void remap(const MergeDocIDRemapperPtr& mapper, const SegmentInfosPtr& infos, Collection< Collection<int32_t> > docMaps, Collection<int32_t> delCounts, const OneMergePtr& merge, int32_t mergedDocCount);
40 };
41
43 class Num : public LuceneObject {
44 public:
45 Num(int32_t num);
46
47 protected:
48 int32_t num;
49
50 public:
51 int32_t getNum();
52 void setNum(int32_t num);
53 };
54
55 }
56
57 #endif
Lucene::BufferedDeletes::any
bool any()
Lucene::BufferedDeletes::clear
void clear()
Lucene::OneMergePtr
boost::shared_ptr< OneMerge > OneMergePtr
Definition: LuceneTypes.h:192
Lucene::BufferedDeletes::queries
MapQueryInt queries
Definition: BufferedDeletes.h:29
Lucene::BufferedDeletesPtr
boost::shared_ptr< BufferedDeletes > BufferedDeletesPtr
Definition: LuceneTypes.h:87
Lucene::BufferedDeletes::addBytesUsed
void addBytesUsed(int64_t b)
Lucene::BufferedDeletes::numTerms
int32_t numTerms
Definition: BufferedDeletes.h:24
Lucene::BufferedDeletes::docIDs
Collection< int32_t > docIDs
Definition: BufferedDeletes.h:30
Query.h
Lucene::BufferedDeletes::bytesUsed
int64_t bytesUsed
Definition: BufferedDeletes.h:31
Lucene::SegmentInfosPtr
boost::shared_ptr< SegmentInfos > SegmentInfosPtr
Definition: LuceneTypes.h:210
Lucene::BufferedDeletes::size
int32_t size()
Lucene::BufferedDeletes::update
void update(const BufferedDeletesPtr &in)
Lucene::Num
Number of documents a delete term applies to.
Definition: BufferedDeletes.h:43
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::BufferedDeletes
Holds buffered deletes, by docID, term or query. We hold two instances of this class: one for the del...
Definition: BufferedDeletes.h:19
Lucene::BufferedDeletes::remap
void remap(const MergeDocIDRemapperPtr &mapper, const SegmentInfosPtr &infos, Collection< Collection< int32_t > > docMaps, Collection< int32_t > delCounts, const OneMergePtr &merge, int32_t mergedDocCount)
Lucene::Num::num
int32_t num
Definition: BufferedDeletes.h:48
Lucene::BufferedDeletes::BufferedDeletes
BufferedDeletes(bool doTermSort)
Lucene::Collection< int32_t >
Lucene::MergeDocIDRemapperPtr
boost::shared_ptr< MergeDocIDRemapper > MergeDocIDRemapperPtr
Definition: LuceneTypes.h:173
Lucene::BufferedDeletes::terms
MapTermNum terms
Definition: BufferedDeletes.h:28
Term.h
Lucene::BufferedDeletes::~BufferedDeletes
virtual ~BufferedDeletes()

clucene.sourceforge.net