Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
SegmentMergeInfo.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 SEGMENTMERGEINFO_H
8
#define SEGMENTMERGEINFO_H
9
10
#include "
Term.h
"
11
12
namespace
Lucene
13
{
14
class
SegmentMergeInfo
:
public
LuceneObject
15
{
16
public
:
17
SegmentMergeInfo
(int32_t b,
TermEnumPtr
te,
IndexReaderPtr
r);
18
virtual
~SegmentMergeInfo
();
19
20
LUCENE_CLASS
(
SegmentMergeInfo
);
21
22
protected
:
23
TermPositionsPtr
postings
;
// use getPositions()
24
Collection<int32_t>
docMap
;
// use getDocMap()
25
26
public
:
27
TermPtr
term
;
28
int32_t
base
;
29
int32_t
ord
;
// the position of the segment in a MultiReader
30
TermEnumPtr
termEnum
;
31
IndexReaderWeakPtr
_reader
;
32
int32_t
delCount
;
33
34
public
:
35
Collection<int32_t>
getDocMap
();
36
TermPositionsPtr
getPositions
();
37
bool
next
();
38
void
close
();
39
};
40
}
41
42
#endif
clucene.sourceforge.net