strus
0.17
|
Interface for a parameterized weighting function instance. More...
#include <weightingFunctionInstanceInterface.hpp>
Public Member Functions | |
virtual | ~WeightingFunctionInstanceInterface () |
Destructor. More... | |
virtual void | addStringParameter (const std::string &name, const std::string &value)=0 |
Add a named string value parameter. More... | |
virtual void | addNumericParameter (const std::string &name, const NumericVariant &value)=0 |
Add a named numeric value parameter. More... | |
virtual WeightingFunctionContextInterface * | createFunctionContext (const StorageClientInterface *storage_, MetaDataReaderInterface *metadata_, const GlobalStatistics &stats) const =0 |
Create an execution context for this weighting function instance. More... | |
virtual std::vector< std::string > | getVariables () const =0 |
Get the list of variables used by this function defined in the query with 'QueryInterface::setWeightingVariableValue( const std::string&, double)'. More... | |
virtual std::string | tostring () const =0 |
Get a comma ',' separated list of the function parameters as assignments (e.g. name=value) More... | |
Interface for a parameterized weighting function instance.
|
inlinevirtual |
Destructor.
|
pure virtual |
Add a named numeric value parameter.
[in] | name | parameter name |
[in] | value | parameter value |
|
pure virtual |
Add a named string value parameter.
[in] | name | parameter name |
[in] | value | parameter value |
|
pure virtual |
Create an execution context for this weighting function instance.
[in] | storage_ | storage reference for retrieving some statistics (like the document collection frequency) |
[in] | metadata_ | meta data interface |
[in] | stats | global statistics for weighting |
|
pure virtual |
Get the list of variables used by this function defined in the query with 'QueryInterface::setWeightingVariableValue( const std::string&, double)'.
|
pure virtual |
Get a comma ',' separated list of the function parameters as assignments (e.g. name=value)