public class HiveFunctionDefinitionFactory extends Object implements FunctionDefinitionFactory
FunctionDefinitionFactory.Context
Constructor and Description |
---|
HiveFunctionDefinitionFactory(HiveShim hiveShim) |
Modifier and Type | Method and Description |
---|---|
FunctionDefinition |
createFunctionDefinition(String name,
CatalogFunction catalogFunction,
FunctionDefinitionFactory.Context context)
Creates a
FunctionDefinition from given CatalogFunction with the given FunctionDefinitionFactory.Context containing the class loader of the current session, which is useful when it's needed
to load class from class name. |
FunctionDefinition |
createFunctionDefinitionFromFlinkFunction(String name,
CatalogFunction catalogFunction,
FunctionDefinitionFactory.Context context) |
FunctionDefinition |
createFunctionDefinitionFromHiveFunction(String name,
String functionClassName,
FunctionDefinitionFactory.Context context)
Create a FunctionDefinition from a Hive function's class name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createFunctionDefinition
public HiveFunctionDefinitionFactory(HiveShim hiveShim)
public FunctionDefinition createFunctionDefinition(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context)
FunctionDefinitionFactory
FunctionDefinition
from given CatalogFunction
with the given FunctionDefinitionFactory.Context
containing the class loader of the current session, which is useful when it's needed
to load class from class name.
The default implementation will call FunctionDefinitionFactory.createFunctionDefinition(String,
CatalogFunction)
directly.
createFunctionDefinition
in interface FunctionDefinitionFactory
name
- name of the CatalogFunction
catalogFunction
- the catalog functioncontext
- the FunctionDefinitionFactory.Context
for creating function definitionFunctionDefinition
public FunctionDefinition createFunctionDefinitionFromFlinkFunction(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context)
public FunctionDefinition createFunctionDefinitionFromHiveFunction(String name, String functionClassName, FunctionDefinitionFactory.Context context)
HiveModule
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.