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

IntFieldSource.h
Go to the documentation of this file.
1 // 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 INTFIELDSOURCE_H
8 #define INTFIELDSOURCE_H
9
10 #include "FieldCacheSource.h"
11
12 namespace Lucene {
13
24 class LPPAPI IntFieldSource : public FieldCacheSource {
25 public:
27 IntFieldSource(const String& field, const IntParserPtr& parser = IntParserPtr());
28 virtual ~IntFieldSource();
29
30 LUCENE_CLASS(IntFieldSource);
31
32 protected:
33 IntParserPtr parser;
34
35 public:
36 virtual String description();
37 virtual DocValuesPtr getCachedFieldValues(const FieldCachePtr& cache, const String& field, const IndexReaderPtr& reader);
38 virtual bool cachedFieldSourceEquals(const FieldCacheSourcePtr& other);
39 virtual int32_t cachedFieldSourceHashCode();
40 };
41
42 }
43
44 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
Lucene::IntParserPtr
boost::shared_ptr< IntParser > IntParserPtr
Definition: LuceneTypes.h:376
Lucene::FieldCacheSourcePtr
boost::shared_ptr< FieldCacheSource > FieldCacheSourcePtr
Definition: LuceneTypes.h:345
Lucene::DocValuesPtr
boost::shared_ptr< DocValues > DocValuesPtr
Definition: LuceneTypes.h:325
Lucene::FieldCacheSource
A base class for ValueSource implementations that retrieve values for a single field from the FieldCa...
Definition: FieldCacheSource.h:28
FieldCacheSource.h
Lucene::FieldCachePtr
boost::shared_ptr< FieldCache > FieldCachePtr
Definition: LuceneTypes.h:334
Lucene::IntFieldSource
Obtains int field values from the FieldCache using getInts() and makes those values available as othe...
Definition: IntFieldSource.h:24

clucene.sourceforge.net