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


Loading...
Searching...
No Matches
OrdFieldSource.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 ORDFIELDSOURCE_H
8#define ORDFIELDSOURCE_H
9
10#include "ValueSource.h"
11
12namespace Lucene {
13
31class LPPAPI OrdFieldSource : public ValueSource {
32public:
35 OrdFieldSource(const String& field);
36 virtual ~OrdFieldSource();
37
39
40protected:
41 String field;
42
43public:
44 virtual String description();
45 virtual DocValuesPtr getValues(const IndexReaderPtr& reader);
46 virtual bool equals(const LuceneObjectPtr& other);
47 virtual int32_t hashCode();
48};
49
50}
51
52#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Obtains the ordinal of the field value from the default Lucene FieldCache using getStringIndex().
Definition OrdFieldSource.h:31
virtual DocValuesPtr getValues(const IndexReaderPtr &reader)
Return the DocValues used by the function query.
virtual int32_t hashCode()
Needed for possible caching of query results - used by ValueSourceQuery#hashCode().
String field
Definition OrdFieldSource.h:41
virtual String description()
Description of field, used in explain()
virtual bool equals(const LuceneObjectPtr &other)
Needed for possible caching of query results - used by ValueSourceQuery#equals(LuceneObjectPtr).
OrdFieldSource(const String &field)
Constructor for a certain field.
Source of values for basic function queries.
Definition ValueSource.h:21
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< DocValues > DocValuesPtr
Definition LuceneTypes.h:325
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157

clucene.sourceforge.net