AsyncLookupFunctionProvider
to implement asynchronous lookup
table.@PublicEvolving @Deprecated public interface AsyncTableFunctionProvider<T> extends LookupTableSource.LookupRuntimeProvider
AsyncTableFunction
instance as a runtime implementation for LookupTableSource
.
The runtime will call the function with values describing the table's lookup keys (in the
order of declaration in LookupTableSource.LookupContext.getKeys()
).
By default, input and output DataType
s of the AsyncTableFunction
are derived
similar to other UserDefinedFunction
s. However, for convenience, in a LookupTableSource
the output type can simply be a Row
or RowData
in which case
the input and output types are derived from the table's schema with default conversion.
Modifier and Type | Method and Description |
---|---|
AsyncTableFunction<T> |
createAsyncTableFunction()
Deprecated.
Creates a
AsyncTableFunction instance. |
static <T> AsyncTableFunctionProvider<T> |
of(AsyncTableFunction<T> asyncTableFunction)
Deprecated.
Helper method for creating a static provider.
|
static <T> AsyncTableFunctionProvider<T> of(AsyncTableFunction<T> asyncTableFunction)
AsyncTableFunction<T> createAsyncTableFunction()
AsyncTableFunction
instance.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.