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

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

clucene.sourceforge.net