strusAnalyzer  0.17
aggregatorFunctionInstanceInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_ANALYZER_AGGREGATOR_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_AGGREGATOR_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
14 #include "strus/numericVariant.hpp"
15 
17 namespace strus
18 {
19 
23 {
24 public:
27 
31  virtual NumericVariant evaluate( const analyzer::Document& document) const=0;
32 
35  virtual analyzer::FunctionView view() const=0;
36 };
37 
38 }//namespace
39 #endif
40 
virtual analyzer::FunctionView view() const =0
Get the definition of the function as structure for introspection.
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Definition: functionView.hpp:29
virtual ~AggregatorFunctionInstanceInterface()
Destructor.
Definition: aggregatorFunctionInstanceInterface.hpp:26
virtual NumericVariant evaluate(const analyzer::Document &document) const =0
Aggregator function for document statistics.
Structure of a document as result of document analysis.
Interface for a parameterized aggregator function.
Definition: aggregatorFunctionInstanceInterface.hpp:22
Structure of a document created as result of a document analysis.
Definition: document.hpp:25