ScalarFunction and ScalarFunctionFactory Java Interface
This section describes information that is specific to the Java API. See UDSF Class Overview for general information about implementing the ScalarFunction
and ScalarFunctionFactory
classes.
ScalarFunction API
The API provides the following methods for extension by subclasses:
void setup(ServerInterface srvInterface, SizedColumnTypes argTypes); abstract void processBlock(ServerInterface srvInterface, BlockReader arg_reader, BlockWriter res_writer) throws UdfException, DestroyInvocation; void destroy(ServerInterface srvInterface, SizedColumnTypes argTypes);
ScalarFunctionFactory API
The API provides the following methods for extension by subclasses:
abstract ScalarFunction createScalarFunction(ServerInterface srvInterface); abstract void getPrototype(ServerInterface srvInterface, ColumnTypes argTypes, ColumnTypes returnType); void getReturnType(ServerInterface srvInterface, SizedColumnTypes argTypes, SizedColumnTypes returnType) throws UdfException; void getParameterType(ServerInterface srvInterface, SizedColumnTypes parameterTypes);