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


 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:
19  virtual ~SegmentTermEnum();
20 
22 
23  protected:
27  TermBufferPtr scanBuffer; // used for scanning
28 
30 
31  int32_t format;
32  bool isIndex;
34 
35  public:
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:
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 
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