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


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

clucene.sourceforge.net