Interface for User-Defined Analytic Function (UDAnF). A UDAnF operates on rows of data and returns rows of data, not necessarily 1:1.
More...
Interface for User-Defined Analytic Function (UDAnF). A UDAnF operates on rows of data and returns rows of data, not necessarily 1:1.
An AnalyticFunction must have an associated AnalyticFunctionFactory.
|
inlineprotectedvirtualinherited |
Cancel callback to be overridden by the UDX. Called when the query running the UDX has been canceled.
- Note
- This method will be invoked at most once per UDX object. Once a UDX object has been canceled, it will never be un-canceled.
- This method may be called from a separate thread, concurrently with other methods of this UDX object (but never the constructor or destructor). Implementations must be thread-safe with all methods of this UDX.
- This method will be invoked for either an explicit user cancel, or in the event of an error during query execution.
Referenced by Vertica::UDXObject::cancelUDX().
Cancel callback invoked when the query running the UDX has been canceled. See cancel().
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
bool Vertica::UDXObject::isCanceled |
( |
| ) |
const |
|
inlineinherited |
- Returns
- true iff this UDX has been canceled
Invoke a user defined analytic on a set of rows. As the name suggests, a batch of rows are passed in for every invocation to amortize performance.
- Parameters
-
srvInterface | a ServerInterface object used to communicate with Vertica |
input_reader | input rows |
output_writer | output location |
Perform per instance initialization. This function may throw errors.