@Internal public class JdbcRowDataLookupFunction extends TableFunction<RowData>
JdbcDynamicTableSource
.Constructor and Description |
---|
JdbcRowDataLookupFunction(JdbcOptions options,
JdbcLookupOptions lookupOptions,
String[] fieldNames,
DataType[] fieldTypes,
String[] keyNames,
RowType rowType) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Tear-down method for user-defined function.
|
void |
eval(Object... keys)
This is a lookup method which is called by Flink framework in runtime.
|
Connection |
getDbConnection() |
void |
open(FunctionContext context)
Setup method for user-defined function.
|
collect, getKind, getParameterTypes, getResultType, getTypeInference, setCollector
functionIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic
public JdbcRowDataLookupFunction(JdbcOptions options, JdbcLookupOptions lookupOptions, String[] fieldNames, DataType[] fieldTypes, String[] keyNames, RowType rowType)
public void open(FunctionContext context) throws Exception
UserDefinedFunction
open
in class UserDefinedFunction
Exception
public void eval(Object... keys)
keys
- lookup keyspublic void close() throws IOException
UserDefinedFunction
close
in class UserDefinedFunction
IOException
@VisibleForTesting public Connection getDbConnection()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.