AnalyticFunction and AnalyticFunctionFactory C++ Interface
This section describes information that is specific to the C++ API. See UDAnF Class Overview for general information about implementing the AnalyticFunction
and AnalyticFunctionFactory
classes.
AnalyticFunction API
The API provides the following methods for extension by subclasses:
virtual void setup(ServerInterface &srvInterface, const SizedColumnTypes &argTypes); virtual void processPartition (ServerInterface &srvInterface, AnalyticPartitionReader &input_reader, AnalyticPartitionWriter &output_writer)=0; virtual void destroy(ServerInterface &srvInterface, const SizedColumnTypes &argTypes);
AnalyticFunctionFactory API
The API provides the following methods for extension by subclasses:
virtual AnalyticFunction * createAnalyticFunction (ServerInterface &srvInterface)=0; virtual void getPrototype(ServerInterface &srvInterface, ColumnTypes &argTypes, ColumnTypes &returnType)=0; virtual void getReturnType(ServerInterface &srvInterface, const SizedColumnTypes &argTypes, SizedColumnTypes &returnType)=0; virtual void getParameterType(ServerInterface &srvInterface, SizedColumnTypes ¶meterTypes);