Example #1
0
 def create_another_function():
     gateway = get_gateway()
     j_function = gateway.jvm.GenericCatalogFunction(
         "MyAnotherFunction", {})
     return CatalogFunction(j_function)
Example #2
0
 def create_function():
     gateway = get_gateway()
     j_function = gateway.jvm.CatalogFunctionImpl("MyFunction", {})
     return CatalogFunction(j_function)
Example #3
0
 def create_another_function():
     gateway = get_gateway()
     j_function = gateway.jvm.CatalogFunctionImpl(
         "org.apache.flink.table.functions.ScalarFunction")
     return CatalogFunction(j_function)
Example #4
0
 def create_function():
     gateway = get_gateway()
     j_function = gateway.jvm.CatalogFunctionImpl(
         "org.apache.flink.table.functions.python.SimplePythonFunction")
     return CatalogFunction(j_function)
Example #5
0
 def create_another_function():
     return CatalogFunction.create_instance(
         "org.apache.flink.table.functions.ScalarFunction", "Java")
Example #6
0
 def create_function():
     return CatalogFunction.create_instance(
         "org.apache.flink.table.functions.python.PythonScalarFunction",
         "Java")