public static interface DynamicTableSource.Context
ScanTableSource.ScanRuntimeProvider
and LookupTableSource.LookupRuntimeProvider.
It offers utilities by the planner for creating runtime implementation with minimal dependencies to internal data structures.
Methods should be called in ScanTableSource.getScanRuntimeProvider(ScanTableSource.ScanContext)
and LookupTableSource.getLookupRuntimeProvider(LookupTableSource.LookupContext). The returned
instances are Serializable and can be directly passed into the runtime implementation class.
| 限定符和类型 | 方法和说明 |
|---|---|
DynamicTableSource.DataStructureConverter |
createDataStructureConverter(DataType producedDataType)
Creates a converter for mapping between objects specified by the given
DataType and
Flink's internal data structures that can be passed into a runtime implementation. |
org.apache.flink.api.common.typeinfo.TypeInformation<?> |
createTypeInformation(DataType producedDataType)
Creates type information describing the internal data structures of the given
DataType. |
org.apache.flink.api.common.typeinfo.TypeInformation<?> createTypeInformation(DataType producedDataType)
DataType.DynamicTableSource.DataStructureConverter createDataStructureConverter(DataType producedDataType)
DataType and
Flink's internal data structures that can be passed into a runtime implementation.
For example, a Row and its fields can be converted into RowData, or a (possibly
nested) POJO can be converted into the internal representation for structured types.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.