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


Loading...
Searching...
No Matches
SegmentMergeInfo.h
Go to the documentation of this file.
1
2// 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
12namespace Lucene {
13
15public:
16 SegmentMergeInfo(int32_t b, const TermEnumPtr& te, const IndexReaderPtr& r);
18
20
21protected:
22 TermPositionsPtr postings; // use getPositions()
23 Collection<int32_t> docMap; // use getDocMap()
24
25public:
27 int32_t base;
28 int32_t ord; // the position of the segment in a MultiReader
31 int32_t delCount;
32
33public:
36 bool next();
37 void close();
38};
39
40}
41
42#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition SegmentMergeInfo.h:14
Collection< int32_t > docMap
Definition SegmentMergeInfo.h:23
Collection< int32_t > getDocMap()
int32_t ord
Definition SegmentMergeInfo.h:28
SegmentMergeInfo(int32_t b, const TermEnumPtr &te, const IndexReaderPtr &r)
int32_t base
Definition SegmentMergeInfo.h:27
TermPositionsPtr getPositions()
TermPositionsPtr postings
Definition SegmentMergeInfo.h:22
TermPtr term
Definition SegmentMergeInfo.h:26
int32_t delCount
Definition SegmentMergeInfo.h:31
TermEnumPtr termEnum
Definition SegmentMergeInfo.h:29
IndexReaderWeakPtr _reader
Definition SegmentMergeInfo.h:30
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TermPositions > TermPositionsPtr
Definition LuceneTypes.h:243
boost::weak_ptr< IndexReader > IndexReaderWeakPtr
Definition LuceneTypes.h:157
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
boost::shared_ptr< TermEnum > TermEnumPtr
Definition LuceneTypes.h:235
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157

clucene.sourceforge.net