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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DoubleFieldSource.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 DOUBLEFIELDSOURCE_H
8 #define DOUBLEFIELDSOURCE_H
9 
10 #include "FieldCacheSource.h"
11 #include "DocValues.h"
12 
13 namespace Lucene
14 {
26  {
27  public:
30  virtual ~DoubleFieldSource();
31 
33 
34  protected:
36 
37  public:
38  virtual String description();
39  virtual DocValuesPtr getCachedFieldValues(FieldCachePtr cache, const String& field, IndexReaderPtr reader);
40  virtual bool cachedFieldSourceEquals(FieldCacheSourcePtr other);
41  virtual int32_t cachedFieldSourceHashCode();
42  };
43 
44  class DoubleDocValues : public DocValues
45  {
46  public:
48  virtual ~DoubleDocValues();
49 
51 
52  protected:
55 
56  public:
57  virtual double doubleVal(int32_t doc);
58  virtual String toString(int32_t doc);
59  virtual CollectionValue getInnerArray();
60  };
61 }
62 
63 #endif

clucene.sourceforge.net