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