Inheritance diagram for Vertica::ScalarFunctionFactory:

Public Types | |
| AGGREGATE | |
| ANALYTIC | |
| FILESYSTEM | |
| FUNCTION | |
| LOAD_FILTER | |
| LOAD_PARSER | |
| LOAD_SOURCE | |
| MULTI_TRANSFORM | |
| TRANSFORM | |
| TYPE | |
| enum | UDXType { FUNCTION, TRANSFORM, ANALYTIC, MULTI_TRANSFORM, AGGREGATE, LOAD_SOURCE, LOAD_FILTER, LOAD_PARSER, FILESYSTEM, TYPE } |
Public Member Functions | |
| virtual ScalarFunction * | createScalarFunction (ServerInterface &srvInterface)=0 |
| virtual void | getParameterType (ServerInterface &srvInterface, SizedColumnTypes ¶meterTypes) |
| virtual void | getPerInstanceResources (ServerInterface &srvInterface, VResources &res) |
| virtual void | getPrototype (ServerInterface &srvInterface, ColumnTypes &argTypes, ColumnTypes &returnType)=0 |
| virtual void | getReturnType (ServerInterface &srvInterface, const SizedColumnTypes &argTypes, SizedColumnTypes &returnType) |
Public Attributes | |
| strictness | strict |
| volatility | vol |
Protected Member Functions | |
| virtual UDXType | getUDXFactoryType () |
Protected Attributes | |
| Oid | libOid |
| std::string | sqlName |
Friends | |
| class | ::UdfSupport |
A ScalarFunctionFactory is responsible for providing type and type modifier information.
enum Vertica::UDXFactory::UDXType [inherited] |
The type of UDX instance this factory produces
| virtual ScalarFunction* Vertica::ScalarFunctionFactory::createScalarFunction | ( | ServerInterface & | srvInterface | ) | [pure virtual] |
| srvInterface | a ServerInterface object used to communicate with Vertica |
| virtual void Vertica::UDXFactory::getParameterType | ( | ServerInterface & | srvInterface, | |
| SizedColumnTypes & | parameterTypes | |||
| ) | [inline, virtual, inherited] |
| virtual void Vertica::UDXFactory::getPerInstanceResources | ( | ServerInterface & | srvInterface, | |
| VResources & | res | |||
| ) | [inline, virtual, inherited] |
Set the resource required for each instance of the UDX Object subclass
| srvInterface | a ServerInterface object used to communicate with Vertica | |
| res | a VResources object used to tell Vertica what resources are needed by the UDX |
| virtual void Vertica::UDXFactory::getPrototype | ( | ServerInterface & | srvInterface, | |
| ColumnTypes & | argTypes, | |||
| ColumnTypes & | returnType | |||
| ) | [pure virtual, inherited] |
Provides the argument and return types of the UDX
| virtual void Vertica::ScalarFunctionFactory::getReturnType | ( | ServerInterface & | srvInterface, | |
| const SizedColumnTypes & | argTypes, | |||
| SizedColumnTypes & | returnType | |||
| ) | [inline, virtual] |
For scalar functions, this function needs to be overridden only if the return type needs length/precision specification.
| srvInterface | a ServerInterface object used to communicate with Vertica | |
| argTypes | The data type of the return value defined by processBlock() | |
| returnType | The size of the data returned by processBlock() |
Implements Vertica::UDXFactory.
| virtual UDXType Vertica::ScalarFunctionFactory::getUDXFactoryType | ( | ) | [inline, protected, virtual] |
Strictness and Volatility settings that the UDSF programmer can set Defaults are VOLATILE and CALLED_ON_NULL_INPUT