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
include
NumericField.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 NUMERICFIELD_H
8
#define NUMERICFIELD_H
9
10
#include "
Field.h
"
11
12
namespace
Lucene
13
{
59
class
LPPAPI
NumericField
:
public
AbstractField
60
{
61
public
:
67
NumericField
(
const
String& name);
68
77
NumericField
(
const
String& name,
Field::Store
store,
bool
index);
78
84
NumericField
(
const
String& name, int32_t precisionStep);
85
94
NumericField
(
const
String& name, int32_t precisionStep,
Field::Store
store,
bool
index);
95
96
virtual
~
NumericField
();
97
98
LUCENE_CLASS
(
NumericField
);
99
100
protected
:
101
NumericTokenStreamPtr
tokenStream
;
102
103
public
:
105
virtual
TokenStreamPtr
tokenStreamValue();
106
108
virtual
ByteArray getBinaryValue(ByteArray result);
109
111
virtual
ReaderPtr
readerValue();
112
114
virtual
String stringValue();
115
117
virtual
int64_t getNumericValue();
118
121
virtual
NumericFieldPtr
setLongValue(int64_t value);
122
125
virtual
NumericFieldPtr
setIntValue(int32_t value);
126
129
virtual
NumericFieldPtr
setDoubleValue(
double
value);
130
};
131
}
132
133
#endif
clucene.sourceforge.net