Class UDFManagementService


  • public class UDFManagementService
    extends java.lang.Object
    • Method Detail

      • acquireLock

        public void acquireLock()
      • releaseLock

        public void releaseLock()
      • validate

        public void validate​(UDFInformation udfInformation)
        invoked by config leader for validation before registration
      • register

        public void register​(UDFInformation udfInformation,
                             java.nio.ByteBuffer jarFile)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • register

        public void register​(UDFInformation udfInformation)
                      throws java.lang.Exception
        temp code for stand-alone
        Throws:
        java.lang.Exception
      • isLocalJarConflicted

        public boolean isLocalJarConflicted​(UDFInformation udfInformation)
                                     throws org.apache.iotdb.udf.api.exception.UDFManagementException
        check whether local jar is correct according to md5
        Throws:
        org.apache.iotdb.udf.api.exception.UDFManagementException
      • doRegister

        public void doRegister​(UDFInformation udfInformation)
                        throws org.apache.iotdb.udf.api.exception.UDFManagementException
        Only call this method directly for registering new data node, otherwise you need to call register().
        Throws:
        org.apache.iotdb.udf.api.exception.UDFManagementException
      • deregister

        public void deregister​(java.lang.String functionName,
                               boolean needToDeleteJar)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • reflect

        public org.apache.iotdb.udf.api.UDF reflect​(java.lang.String functionName)
      • getAllUDFInformation

        public UDFInformation[] getAllUDFInformation()
      • getAllBuiltInTimeSeriesGeneratingInformation

        public java.util.List<UDFInformation> getAllBuiltInTimeSeriesGeneratingInformation()
      • isUDTF

        public boolean isUDTF​(java.lang.String functionName)
                       throws java.lang.NoSuchMethodException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.InstantiationException,
                              java.lang.IllegalAccessException
        Throws:
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
      • isUDAF

        public boolean isUDAF​(java.lang.String functionName)
        always returns false for now
      • deregisterAll

        public void deregisterAll()
                           throws org.apache.iotdb.udf.api.exception.UDFManagementException
        Throws:
        org.apache.iotdb.udf.api.exception.UDFManagementException