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
SegmentTermEnum.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 SEGMENTTERMENUM_H
8 #define SEGMENTTERMENUM_H
9
10 #include "TermEnum.h"
11
12 namespace Lucene
13 {
14 class SegmentTermEnum : public TermEnum
15 {
16 public:
17 SegmentTermEnum();
18 SegmentTermEnum(IndexInputPtr i, FieldInfosPtr fis, bool isi);
19 virtual ~SegmentTermEnum();
20
21 LUCENE_CLASS(SegmentTermEnum);
22
23 protected:
24 IndexInputPtr input;
25 TermBufferPtr termBuffer;
26 TermBufferPtr prevBuffer;
27 TermBufferPtr scanBuffer; // used for scanning
28
29 TermInfoPtr _termInfo;
30
31 int32_t format;
32 bool isIndex;
33 int32_t formatM1SkipInterval;
34
35 public:
36 FieldInfosPtr fieldInfos;
37 int64_t size;
38 int64_t position;
39
40 int64_t indexPointer;
41 int32_t indexInterval;
42 int32_t skipInterval;
43 int32_t maxSkipLevels;
44
45 public:
46 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
47
48 void seek(int64_t pointer, int64_t p, TermPtr t, TermInfoPtr ti);
49
51 virtual bool next();
52
54 int32_t scanTo(TermPtr term);
55
58 virtual TermPtr term();
59
61 TermPtr prev();
62
65 TermInfoPtr termInfo();
66
69 void termInfo(TermInfoPtr ti);
70
73 virtual int32_t docFreq();
74
77 int64_t freqPointer();
78
81 int64_t proxPointer();
82
84 virtual void close();
85 };
86 }
87
88 #endif

clucene.sourceforge.net