strus
0.17
|
Defines all object instances involved in query evaluation addressable by name. More...
#include <queryProcessorInterface.hpp>
Public Types | |
enum | FunctionType { PostingJoinOperator, WeightingFunction, SummarizerFunction, ScalarFunctionParser } |
Function type for fetching the list of available functions. More... | |
Public Member Functions | |
virtual | ~QueryProcessorInterface () |
Destructor. More... | |
virtual std::string | getResourceFilePath (const std::string &filename) const =0 |
Get the absolute path of a resource file. More... | |
virtual void | definePostingJoinOperator (const std::string &name, PostingJoinOperatorInterface *op)=0 |
Define a new posting set join operation. More... | |
virtual const PostingJoinOperatorInterface * | getPostingJoinOperator (const std::string &name) const =0 |
Get a join function reference defined by 'name'. More... | |
virtual void | defineWeightingFunction (const std::string &name, WeightingFunctionInterface *func)=0 |
Define a new weighting function. More... | |
virtual const WeightingFunctionInterface * | getWeightingFunction (const std::string &name) const =0 |
Get a weighting function reference by name. More... | |
virtual void | defineSummarizerFunction (const std::string &name, SummarizerFunctionInterface *sumfunc)=0 |
Define a new summarization function. More... | |
virtual const SummarizerFunctionInterface * | getSummarizerFunction (const std::string &name) const =0 |
Get a summarization function reference by name. More... | |
virtual std::vector< std::string > | getFunctionList (const FunctionType &type) const =0 |
Get a list of all functions of a specific type available. More... | |
virtual void | defineScalarFunctionParser (const std::string &name, ScalarFunctionParserInterface *parser)=0 |
Define a function parser for scalar functions used in weighting or summarization. More... | |
virtual const ScalarFunctionParserInterface * | getScalarFunctionParser (const std::string &name) const =0 |
Get a scalar function parser reference by name. More... | |
Defines all object instances involved in query evaluation addressable by name.
Function type for fetching the list of available functions.
|
inlinevirtual |
Destructor.
|
pure virtual |
Define a new posting set join operation.
[in] | name | the name of the function |
[in] | op | the function reference (ownership passed to this) |
|
pure virtual |
Define a function parser for scalar functions used in weighting or summarization.
[in] | name | name of the scalar function language |
[in] | parser | the scalar function parser reference (ownership passed to this) |
|
pure virtual |
Define a new summarization function.
[in] | name | name of the summarization function |
[in] | sumfunc | the summarization function object reference (ownership passed to this) |
|
pure virtual |
Define a new weighting function.
[in] | name | the name of the function |
[in] | func | the function to define (ownership passed to this) |
|
pure virtual |
Get a list of all functions of a specific type available.
[in] | type | type of the function |
|
pure virtual |
Get a join function reference defined by 'name'.
[in] | name | name of the join function to get |
|
pure virtual |
Get the absolute path of a resource file.
[in] | filename | name of the resource file |
|
pure virtual |
Get a scalar function parser reference by name.
[in] | name | name of the scalar function language or empty for the default scalar function language |
|
pure virtual |
Get a summarization function reference by name.
[in] | name | name of the summarization function |
|
pure virtual |
Get a weighting function reference by name.
[in] | name | name of the weighting function |