10 #ifndef _STRUS_WEIGHTING_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
11 #define _STRUS_WEIGHTING_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
18 class WeightingFunctionContextInterface;
22 class StorageClientInterface;
24 class MetaDataReaderInterface;
26 class PostingIteratorInterface;
61 virtual std::string
tostring()
const=0;
Interface of a strus IR storage.
Definition: storageClientInterface.hpp:52
virtual WeightingFunctionContextInterface * createFunctionContext(const StorageClientInterface *storage_, MetaDataReaderInterface *metadata_, const GlobalStatistics &stats) const =0
Create an execution context for this weighting function instance.
virtual std::vector< std::string > getVariables() const =0
Get the list of variables used by this function defined in the query with 'QueryInterface::setWeighti...
Interface for a parameterized weighting function instance.
Definition: weightingFunctionInstanceInterface.hpp:29
virtual void addNumericParameter(const std::string &name, const NumericVariant &value)=0
Add a named numeric value parameter.
Interface for a weighting function with its state and context used during calculation.
Definition: weightingFunctionContextInterface.hpp:24
virtual void addStringParameter(const std::string &name, const std::string &value)=0
Add a named string value parameter.
virtual ~WeightingFunctionInstanceInterface()
Destructor.
Definition: weightingFunctionInstanceInterface.hpp:33
Global document statistics, if passed down with the query.
Definition: globalStatistics.hpp:16
virtual std::string tostring() const =0
Get a comma ',' separated list of the function parameters as assignments (e.g. name=value) ...