Recompiling UDX/AE for INZA

Deployment options: IBM Netezza Appliance

Learn how to recompile the code and reregister UDX/AE for INZA.

Before you begin

  1. Ensure that you have the source code of the UDX/AE (for example, Java, LUA, C++, Python) from your old PDA system.
  2. Ensure that you have the compile_ae script installed.

    The script is part of INZA utilities, and the location of compile_ae is /nz/export/ae/utilities/bin/compile_ae.

  3. Ensure that you have the register_ae script installed.

    The script is part of INZA utilities, and the location of register_ae is /nz/export/ae/utilities/bin/register_ae.

    Note: Check the -h options of the compile_ae and register_ae scripts to successfully provide correct parameters for your AE language.

In the following steps, TestJavaInterface.java is used as the source code.

Procedure

  1. Recompile the source code:
    /nz/export/ae/utilities/bin/compile_ae --language java --template compile /tmp/TestJavaInterface.java --version 11
  2. Reregister the UDX or AE:
    /nz/export/ae/utilities/bin/register_ae --sig "applyop_java(varargs)" --return "double" --class AeUdf --language java --template udf --define "java_class=TestJavaInterface" --version 11
    For more information, see the User-defined analytics processes developer's guide.
  3. Verify that the registered function works in an SQL command:
    SYSTEM.ADMIN(ADMIN)=>  SELECT applyop_java('+',1,2);
     APPLYOP_JAVA
    --------------
                3
    (1 row)