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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NumericField.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 NUMERICFIELD_H
8 #define NUMERICFIELD_H
9 
10 #include "Field.h"
11 
12 namespace Lucene {
13 
59 class LPPAPI NumericField : public AbstractField {
60 public:
66  NumericField(const String& name);
67 
76  NumericField(const String& name, Field::Store store, bool index);
77 
83  NumericField(const String& name, int32_t precisionStep);
84 
93  NumericField(const String& name, int32_t precisionStep, Field::Store store, bool index);
94 
95  virtual ~NumericField();
96 
98 
99 protected:
101 
102 public:
104  virtual TokenStreamPtr tokenStreamValue();
105 
107  virtual ByteArray getBinaryValue(ByteArray result);
108 
110  virtual ReaderPtr readerValue();
111 
113  virtual String stringValue();
114 
116  virtual int64_t getNumericValue();
117 
120  virtual NumericFieldPtr setLongValue(int64_t value);
121 
124  virtual NumericFieldPtr setIntValue(int32_t value);
125 
128  virtual NumericFieldPtr setDoubleValue(double value);
129 };
130 
131 }
132 
133 #endif

clucene.sourceforge.net