AnalyticFunction and AnalyticFunctionFactory Java Interface

This section describes information that is specific to the Java 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:

void setup(ServerInterface srvInterface, SizedColumnTypes argTypes);

abstract void processPartition (ServerInterface srvInterface, 
		AnalyticPartitionReader input_reader, AnalyticPartitionWriter output_writer) 
		throws UdfException, DestroyInvocation;
				
void destroy(ServerInterface srvInterface, SizedColumnTypes argTypes);
		

AnalyticFunctionFactory API

The API provides the following methods for extension by subclasses:

abstract AnalyticFunction createAnalyticFunction (ServerInterface srvInterface);

abstract void getPrototype(ServerInterface srvInterface, ColumnTypes argTypes, ColumnTypes returnType);
				
abstract void getReturnType(ServerInterface srvInterface, SizedColumnTypes argTypes, 
		SizedColumnTypes returnType) throws UdfException;
				
void getParameterType(ServerInterface srvInterface, SizedColumnTypes parameterTypes);