Class GeneratedClass<T>
- java.lang.Object
-
- org.apache.flink.table.runtime.generated.GeneratedClass<T>
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GeneratedAggsHandleFunction
,GeneratedCollector
,GeneratedFunction
,GeneratedHashFunction
,GeneratedInput
,GeneratedJoinCondition
,GeneratedNamespaceAggsHandleFunction
,GeneratedNamespaceTableAggsHandleFunction
,GeneratedNormalizedKeyComputer
,GeneratedOperator
,GeneratedProjection
,GeneratedRecordComparator
,GeneratedRecordEqualiser
,GeneratedResultFuture
,GeneratedTableAggsHandleFunction
,GeneratedWatermarkGenerator
public abstract class GeneratedClass<T> extends Object implements Serializable
A wrapper for generated class, defines anewInstance(ClassLoader)
method to get an instance by reference objects easily.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratedClass(String className, String code, Object[] references, ReadableConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>
compile(ClassLoader classLoader)
Compiles the generated code, the compiled class will be cached in theGeneratedClass
.Class<T>
getClass(ClassLoader classLoader)
String
getClassName()
String
getCode()
Object[]
getReferences()
T
newInstance(ClassLoader classLoader)
Create a new instance of this generated class.T
newInstance(ClassLoader classLoader, Object... args)
-
-
-
Constructor Detail
-
GeneratedClass
protected GeneratedClass(String className, String code, Object[] references, ReadableConfig config)
-
-
Method Detail
-
newInstance
public T newInstance(ClassLoader classLoader)
Create a new instance of this generated class.
-
newInstance
public T newInstance(ClassLoader classLoader, Object... args)
-
compile
public Class<T> compile(ClassLoader classLoader)
Compiles the generated code, the compiled class will be cached in theGeneratedClass
.
-
getClassName
public String getClassName()
-
getCode
public String getCode()
-
getReferences
public Object[] getReferences()
-
getClass
public Class<T> getClass(ClassLoader classLoader)
-
-