@Internal
public class JdbcRowDataLookupFunction
extends org.apache.flink.table.functions.LookupFunction
JdbcDynamicTableSource.| Constructor and Description |
|---|
JdbcRowDataLookupFunction(InternalJdbcConnectionOptions options,
int maxRetryTimes,
String[] fieldNames,
org.apache.flink.table.types.DataType[] fieldTypes,
String[] keyNames,
org.apache.flink.table.types.logical.RowType rowType,
List<String> resolvedPredicates,
Serializable[] pushdownParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getDbConnection() |
Collection<org.apache.flink.table.data.RowData> |
lookup(org.apache.flink.table.data.RowData keyRow)
This is a lookup method which is called by Flink framework in runtime.
|
void |
open(org.apache.flink.table.functions.FunctionContext context) |
collect, finish, getKind, getParameterTypes, getResultType, getTypeInference, setCollectorfunctionIdentifier, toStringpublic JdbcRowDataLookupFunction(InternalJdbcConnectionOptions options, int maxRetryTimes, String[] fieldNames, org.apache.flink.table.types.DataType[] fieldTypes, String[] keyNames, org.apache.flink.table.types.logical.RowType rowType, List<String> resolvedPredicates, Serializable[] pushdownParams)
public void open(org.apache.flink.table.functions.FunctionContext context)
throws Exception
open in class org.apache.flink.table.functions.UserDefinedFunctionExceptionpublic Collection<org.apache.flink.table.data.RowData> lookup(org.apache.flink.table.data.RowData keyRow)
lookup in class org.apache.flink.table.functions.LookupFunctionkeyRow - lookup keyspublic void close()
throws IOException
close in class org.apache.flink.table.functions.UserDefinedFunctionIOException@VisibleForTesting public Connection getDbConnection()
Copyright © 2022–2024 The Apache Software Foundation. All rights reserved.