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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

SegmentMergeInfo.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 SEGMENTMERGEINFO_H
8 #define SEGMENTMERGEINFO_H
9
10 #include "Term.h"
11
12 namespace Lucene {
13
14 class SegmentMergeInfo : public LuceneObject {
15 public:
16 SegmentMergeInfo(int32_t b, const TermEnumPtr& te, const IndexReaderPtr& r);
17 virtual ~SegmentMergeInfo();
18
19 LUCENE_CLASS(SegmentMergeInfo);
20
21 protected:
22 TermPositionsPtr postings; // use getPositions()
23 Collection<int32_t> docMap; // use getDocMap()
24
25 public:
26 TermPtr term;
27 int32_t base;
28 int32_t ord; // the position of the segment in a MultiReader
29 TermEnumPtr termEnum;
30 IndexReaderWeakPtr _reader;
31 int32_t delCount;
32
33 public:
34 Collection<int32_t> getDocMap();
35 TermPositionsPtr getPositions();
36 bool next();
37 void close();
38 };
39
40 }
41
42 #endif
Lucene::SegmentMergeInfo::~SegmentMergeInfo
virtual ~SegmentMergeInfo()
Lucene::SegmentMergeInfo::SegmentMergeInfo
SegmentMergeInfo(int32_t b, const TermEnumPtr &te, const IndexReaderPtr &r)
Lucene::TermPtr
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
Lucene::SegmentMergeInfo::next
bool next()
Lucene::SegmentMergeInfo::delCount
int32_t delCount
Definition: SegmentMergeInfo.h:31
Lucene::TermEnumPtr
boost::shared_ptr< TermEnum > TermEnumPtr
Definition: LuceneTypes.h:235
Lucene::SegmentMergeInfo::getPositions
TermPositionsPtr getPositions()
Lucene::SegmentMergeInfo::termEnum
TermEnumPtr termEnum
Definition: SegmentMergeInfo.h:29
Lucene::SegmentMergeInfo
Definition: SegmentMergeInfo.h:14
Lucene::SegmentMergeInfo::close
void close()
Lucene::SegmentMergeInfo::docMap
Collection< int32_t > docMap
Definition: SegmentMergeInfo.h:23
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::TermPositionsPtr
boost::shared_ptr< TermPositions > TermPositionsPtr
Definition: LuceneTypes.h:243
Lucene::SegmentMergeInfo::base
int32_t base
Definition: SegmentMergeInfo.h:27
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::SegmentMergeInfo::_reader
IndexReaderWeakPtr _reader
Definition: SegmentMergeInfo.h:30
Lucene::IndexReaderWeakPtr
boost::weak_ptr< IndexReader > IndexReaderWeakPtr
Definition: LuceneTypes.h:157
Lucene::SegmentMergeInfo::getDocMap
Collection< int32_t > getDocMap()
Lucene::Collection< int32_t >
Lucene::SegmentMergeInfo::ord
int32_t ord
Definition: SegmentMergeInfo.h:28
Lucene::SegmentMergeInfo::term
TermPtr term
Definition: SegmentMergeInfo.h:26
Term.h
Lucene::SegmentMergeInfo::postings
TermPositionsPtr postings
Definition: SegmentMergeInfo.h:19

clucene.sourceforge.net