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
DocValues.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 DOCVALUES_H
8 #define DOCVALUES_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
22 class LPPAPI DocValues : public LuceneObject
23 {
24 public:
25 DocValues();
26 virtual ~DocValues();
27
28 LUCENE_CLASS(DocValues);
29
30 protected:
31 double minVal;
32 double maxVal;
33 double avgVal;
34 bool computed;
35
36 public:
37 using LuceneObject::toString;
38
42 virtual double doubleVal(int32_t doc) = 0;
43
47 virtual int32_t intVal(int32_t doc);
48
52 virtual int64_t longVal(int32_t doc);
53
57 virtual String strVal(int32_t doc);
58
60 virtual String toString(int32_t doc) = 0;
61
63 virtual ExplanationPtr explain(int32_t doc);
64
75 virtual CollectionValue getInnerArray();
76
80 virtual double getMinValue();
81
85 virtual double getMaxValue();
86
90 virtual double getAverageValue();
91
92 protected:
94 void compute();
95 };
96 }
97
98 #endif

clucene.sourceforge.net