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


TermInfo.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 TERMINFO_H
8 #define TERMINFO_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 class TermInfo : public LuceneObject {
16 public:
17  TermInfo(const TermInfoPtr& ti);
18  TermInfo(int32_t df = 0, int64_t fp = 0, int64_t pp = 0);
19  virtual ~TermInfo();
20 
22 
23 public:
25  int32_t docFreq;
26  int64_t freqPointer;
27  int64_t proxPointer;
28  int32_t skipOffset;
29 
30 public:
31  void set(int32_t docFreq, int64_t freqPointer, int64_t proxPointer, int32_t skipOffset);
32  void set(const TermInfoPtr& ti);
33 };
34 
35 }
36 
37 #endif
virtual ~TermInfo()
Base class for all Lucene classes.
Definition: LuceneObject.h:31
void set(int32_t docFreq, int64_t freqPointer, int64_t proxPointer, int32_t skipOffset)
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
TermInfo(const TermInfoPtr &ti)
int64_t proxPointer
Definition: TermInfo.h:27
int32_t skipOffset
Definition: TermInfo.h:28
int64_t freqPointer
Definition: TermInfo.h:26
boost::shared_ptr< TermInfo > TermInfoPtr
Definition: LuceneTypes.h:239
int32_t docFreq
The number of documents which contain the term.
Definition: TermInfo.h:21
A TermInfo is the record of information stored for a term.
Definition: TermInfo.h:15

clucene.sourceforge.net