@Internal
public class JdbcRowDataLookupFunction
extends org.apache.flink.table.functions.TableFunction<org.apache.flink.table.data.RowData>
JdbcDynamicTableSource.| Constructor and Description |
|---|
JdbcRowDataLookupFunction(JdbcOptions options,
JdbcLookupOptions lookupOptions,
String[] fieldNames,
org.apache.flink.table.types.DataType[] fieldTypes,
String[] keyNames,
org.apache.flink.table.types.logical.RowType rowType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
eval(Object... keys)
This is a lookup method which is called by Flink framework in runtime.
|
Connection |
getDbConnection() |
void |
open(org.apache.flink.table.functions.FunctionContext context) |
collect, getKind, getParameterTypes, getResultType, getTypeInference, setCollectorfunctionIdentifier, toStringpublic JdbcRowDataLookupFunction(JdbcOptions options, JdbcLookupOptions lookupOptions, String[] fieldNames, org.apache.flink.table.types.DataType[] fieldTypes, String[] keyNames, org.apache.flink.table.types.logical.RowType rowType)
public void open(org.apache.flink.table.functions.FunctionContext context)
throws Exception
open in class org.apache.flink.table.functions.UserDefinedFunctionExceptionpublic void eval(Object... keys)
keys - lookup keyspublic void close()
throws IOException
close in class org.apache.flink.table.functions.UserDefinedFunctionIOException@VisibleForTesting public Connection getDbConnection()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.