Working modes
The most straightforward way of constructing an R Analytic Executable requires the
definition of the nz.fun object, followed by successful compilation and
registration. Keep in mind that the nz.mode object takes the value of run by
default. For aggregates, it must be set to aggregate.
In general, the nz.mode object controls the working mode.
The available modes are:
- The
runmode assumes that the user provides all necessary control structures, including the main loopwhile(getNext()){...}. - The
aggregatemode assumes a different situation. The UDX is not a UDF or UDTF, but a UDA, which means state-based processing, state variables, and so on. - The
applymode removes the requirement for the loop that is presented in the example for the run mode. - The
nztapplymode implements a form of grouped apply and is used with thenzTApplyfunction from thenzLibraryfor R client package. - The
installmode enables CRAN packages installation. - The
groupedapplymode is an equivalent for thetapplymode that you can run without thenzLibraryfor R client package.