public class CommonPythonUtil extends Object
Modifier and Type | Method and Description |
---|---|
static PythonFunctionInfo |
createPythonFunctionInfo(org.apache.calcite.rex.RexCall pythonRexCall,
Map<org.apache.calcite.rex.RexNode,Integer> inputNodes,
ClassLoader classLoader) |
static DataViewSpec[] |
extractDataViewSpecs(int index,
DataType accType) |
static Tuple2<PythonAggregateFunctionInfo[],DataViewSpec[][]> |
extractPythonAggregateFunctionInfos(org.apache.flink.table.planner.plan.utils.AggregateInfoList pythonAggregateInfoList,
org.apache.calcite.rel.core.AggregateCall[] aggCalls) |
static Tuple2<int[],PythonFunctionInfo[]> |
extractPythonAggregateFunctionInfosFromAggregateCall(org.apache.calcite.rel.core.AggregateCall[] aggCalls) |
static Configuration |
extractPythonConfiguration(ReadableConfig tableConfig,
ClassLoader classLoader) |
static boolean |
isPythonWorkerInProcessMode(Configuration config,
ClassLoader classLoader) |
static boolean |
isPythonWorkerUsingManagedMemory(Configuration config,
ClassLoader classLoader) |
static Class<?> |
loadClass(String className,
ClassLoader classLoader) |
public static Class<?> loadClass(String className, ClassLoader classLoader)
public static Configuration extractPythonConfiguration(ReadableConfig tableConfig, ClassLoader classLoader)
public static PythonFunctionInfo createPythonFunctionInfo(org.apache.calcite.rex.RexCall pythonRexCall, Map<org.apache.calcite.rex.RexNode,Integer> inputNodes, ClassLoader classLoader)
public static boolean isPythonWorkerUsingManagedMemory(Configuration config, ClassLoader classLoader)
public static boolean isPythonWorkerInProcessMode(Configuration config, ClassLoader classLoader)
public static Tuple2<PythonAggregateFunctionInfo[],DataViewSpec[][]> extractPythonAggregateFunctionInfos(org.apache.flink.table.planner.plan.utils.AggregateInfoList pythonAggregateInfoList, org.apache.calcite.rel.core.AggregateCall[] aggCalls)
public static Tuple2<int[],PythonFunctionInfo[]> extractPythonAggregateFunctionInfosFromAggregateCall(org.apache.calcite.rel.core.AggregateCall[] aggCalls)
public static DataViewSpec[] extractDataViewSpecs(int index, DataType accType)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.