T - type of the result@Experimental public interface LookupableTableSource<T> extends TableSource<T>
TableSource which supports for lookup accessing via key column(s).
For example, MySQL TableSource can implement this interface to support lookup accessing.
When temporal join this MySQL table, the runtime behavior could be in a lookup fashion.| 限定符和类型 | 方法和说明 |
|---|---|
AsyncTableFunction<T> |
getAsyncLookupFunction(String[] lookupKeys)
Gets the
AsyncTableFunction which supports async lookup one key at a time. |
TableFunction<T> |
getLookupFunction(String[] lookupKeys)
Gets the
TableFunction which supports lookup one key at a time. |
boolean |
isAsyncEnabled()
Returns true if async lookup is enabled.
|
explainSource, getProducedDataType, getReturnType, getTableSchemaTableFunction<T> getLookupFunction(String[] lookupKeys)
TableFunction which supports lookup one key at a time.lookupKeys - the chosen field names as lookup keys, it is in the defined orderAsyncTableFunction<T> getAsyncLookupFunction(String[] lookupKeys)
AsyncTableFunction which supports async lookup one key at a time.lookupKeys - the chosen field names as lookup keys, it is in the defined orderboolean isAsyncEnabled()
The lookup function returned by getAsyncLookupFunction(String[]) will be
used if returns true. Otherwise, the lookup function returned by
getLookupFunction(String[]) will be used.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.