Class LifecycleFunctionClass
- java.lang.Object
-
- org.apache.flink.cdc.udf.examples.java.LifecycleFunctionClass
-
- All Implemented Interfaces:
UserDefinedFunction
public class LifecycleFunctionClass extends Object implements UserDefinedFunction
This is an example UDF class for testing purposes only.
-
-
Constructor Summary
Constructors Constructor Description LifecycleFunctionClass()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This will be invoked before a UDF got destroyed.Stringeval()voidopen()This will be invoked every time when a UDF got created.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.cdc.common.udf.UserDefinedFunction
getReturnType, getReturnType, open
-
-
-
-
Method Detail
-
eval
public String eval()
-
open
public void open()
Description copied from interface:UserDefinedFunctionThis will be invoked every time when a UDF got created.- Specified by:
openin interfaceUserDefinedFunction
-
close
public void close()
Description copied from interface:UserDefinedFunctionThis will be invoked before a UDF got destroyed.- Specified by:
closein interfaceUserDefinedFunction
-
-