Class CommonPythonUtil
java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.utils.CommonPythonUtil
A utility class used in PyFlink.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.table.functions.python.PythonFunctionInfocreatePythonFunctionInfo(org.apache.calcite.rex.RexCall pythonRexCall, Map<org.apache.calcite.rex.RexNode, Integer> inputNodes, ClassLoader classLoader) static org.apache.flink.table.runtime.dataview.DataViewSpec[]extractDataViewSpecs(int index, org.apache.flink.table.types.DataType accType) static org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.table.functions.python.PythonAggregateFunctionInfo[],org.apache.flink.table.runtime.dataview.DataViewSpec[][]> extractPythonAggregateFunctionInfos(AggregateInfoList pythonAggregateInfoList, org.apache.calcite.rel.core.AggregateCall[] aggCalls) static org.apache.flink.api.java.tuple.Tuple2<int[],org.apache.flink.table.functions.python.PythonFunctionInfo[]> extractPythonAggregateFunctionInfosFromAggregateCall(org.apache.calcite.rel.core.AggregateCall[] aggCalls) static org.apache.flink.configuration.ConfigurationextractPythonConfiguration(org.apache.flink.configuration.ReadableConfig tableConfig, ClassLoader classLoader) static booleanisPythonWorkerInProcessMode(org.apache.flink.configuration.Configuration config, ClassLoader classLoader) static booleanisPythonWorkerUsingManagedMemory(org.apache.flink.configuration.Configuration config, ClassLoader classLoader) static Class<?>loadClass(String className, ClassLoader classLoader)
-
Method Details
-
loadClass
-
extractPythonConfiguration
public static org.apache.flink.configuration.Configuration extractPythonConfiguration(org.apache.flink.configuration.ReadableConfig tableConfig, ClassLoader classLoader) -
createPythonFunctionInfo
public static org.apache.flink.table.functions.python.PythonFunctionInfo createPythonFunctionInfo(org.apache.calcite.rex.RexCall pythonRexCall, Map<org.apache.calcite.rex.RexNode, Integer> inputNodes, ClassLoader classLoader) -
isPythonWorkerUsingManagedMemory
public static boolean isPythonWorkerUsingManagedMemory(org.apache.flink.configuration.Configuration config, ClassLoader classLoader) -
isPythonWorkerInProcessMode
public static boolean isPythonWorkerInProcessMode(org.apache.flink.configuration.Configuration config, ClassLoader classLoader) -
extractPythonAggregateFunctionInfos
public static org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.table.functions.python.PythonAggregateFunctionInfo[],org.apache.flink.table.runtime.dataview.DataViewSpec[][]> extractPythonAggregateFunctionInfos(AggregateInfoList pythonAggregateInfoList, org.apache.calcite.rel.core.AggregateCall[] aggCalls) -
extractPythonAggregateFunctionInfosFromAggregateCall
public static org.apache.flink.api.java.tuple.Tuple2<int[],org.apache.flink.table.functions.python.PythonFunctionInfo[]> extractPythonAggregateFunctionInfosFromAggregateCall(org.apache.calcite.rel.core.AggregateCall[] aggCalls) -
extractDataViewSpecs
public static org.apache.flink.table.runtime.dataview.DataViewSpec[] extractDataViewSpecs(int index, org.apache.flink.table.types.DataType accType)
-