Class UDFManagementService
- java.lang.Object
-
- org.apache.iotdb.commons.udf.service.UDFManagementService
-
public class UDFManagementService extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireLock()voidderegister(java.lang.String functionName, boolean needToDeleteJar)voidderegisterAll()voiddoRegister(UDFInformation udfInformation)Only call this method directly for registering new data node, otherwise you need to call register().java.util.List<UDFInformation>getAllBuiltInTimeSeriesGeneratingInformation()UDFInformation[]getAllUDFInformation()static UDFManagementServicegetInstance()booleanisLocalJarConflicted(UDFInformation udfInformation)check whether local jar is correct according to md5booleanisUDAF(java.lang.String functionName)always returns false for nowbooleanisUDTF(java.lang.String functionName)org.apache.iotdb.udf.api.UDFreflect(java.lang.String functionName)voidregister(UDFInformation udfInformation)temp code for stand-alonevoidregister(UDFInformation udfInformation, java.nio.ByteBuffer jarFile)voidreleaseLock()voidvalidate(UDFInformation udfInformation)invoked by config leader for validation before registration
-
-
-
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.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.InstantiationExceptionjava.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
-
getInstance
public static UDFManagementService getInstance()
-
-