|  | Java SDK Documentation
    24.2.0
    | 


| Classes | |
| enum | InterfaceType | 
| Public Member Functions | |
| final void | cancelUDX (ServerInterface srvInterface) | 
| void | destroy (ServerInterface srvInterface, SizedColumnTypes argTypes) | 
| void | destroy (ServerInterface srvInterface, SizedColumnTypes argTypes, SessionParamWriterMap udSessionParams) | 
| boolean | isCanceled () | 
| abstract void | processBlock (ServerInterface srvInterface, BlockReader arg_reader, BlockWriter res_writer) throws UdfException, DestroyInvocation | 
| void | setup (ServerInterface srvInterface, SizedColumnTypes argTypes) | 
| Protected Member Functions | |
| void | cancel (ServerInterface srvInterface) | 
| InterfaceType | getInterfaceType () | 
Interface for User-Defined Scalar Function (UDSF). A UDSF produces a single value from a row of data.
A UDSF can be used anywhere a native function can be used, except CREATE TABLE BY PARTITION and SEGMENTED BY expressions.
A ScalarFunction must have an associated ScalarFunctionFactory.
| 
 | protectedinherited | 
Cancel callback to be overridden by the UDX implementation. Called when the query running the UDX has been canceled.
| srvInterface | a ServerInterface object used to communicate with Vertica | 
Referenced by com.vertica.sdk.UDXObject.cancelUDX().
| 
 | inherited | 
Cancel callback invoked when the query running the UDX has been canceled.
See cancel().
| srvInterface | a ServerInterface object used to communicate with Vertica | 
| 
 | inherited | 
Perform per instance destruction. This function may throw errors
| srvInterface | a ServerInterface object used to communicate with Vertica | 
| argTypes | the types of the arguments (as SizedColumnTypes) | 
Referenced by com.vertica.sdk.UDXFunction.destroy().
| 
 | inherited | 
Perform per instance destruction and write session parameters to be used by UDxs that are invoked after this one returns. This function may throw errors
| srvInterface | a ServerInterface object used to communicate with Vertica | 
| argTypes | the types of the arguments (as SizedColumnTypes) | 
| udSessionParams | a SessionParamWriterMap | 
| 
 | inherited | 
Referenced by com.vertica.sdk.UDXObject.cancelUDX().
| 
 | abstract | 
Invoke a user defined function on a set of rows. As the name suggests, a batch of rows are passed in for every invocation to amortize performance.
Notes:
| srvInterface | a ServerInterface object used to communicate with Vertica | 
| arg_reader | input rows | 
| res_writer | output location | 
| UdfException | UDF problem | 
| DestroyInvocation | vertica canceling – do not catch or handle | 
| 
 | inherited | 
Perform per instance initialization. This function may throw errors.
| srvInterface | a ServerInterface object used to communicate with Vertica | 
| argTypes | the types of the arguments (as SizedColumnTypes) |