@Internal public final class ScanRuntimeProviderContext extends Object implements ScanTableSource.ScanContext
ScanTableSource.Context
.Modifier and Type | Field and Description |
---|---|
static ScanRuntimeProviderContext |
INSTANCE |
Constructor and Description |
---|
ScanRuntimeProviderContext() |
Modifier and Type | Method and Description |
---|---|
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. |
TypeInformation<?> |
createTypeInformation(DataType producedDataType)
Creates type information describing the internal data structures of the given
DataType . |
TypeInformation<?> |
createTypeInformation(LogicalType producedLogicalType)
Creates type information describing the internal data structures of the given
LogicalType . |
public static final ScanRuntimeProviderContext INSTANCE
public TypeInformation<?> createTypeInformation(DataType producedDataType)
DynamicTableSource.Context
DataType
.createTypeInformation
in interface DynamicTableSource.Context
ResolvedSchema.toPhysicalRowDataType()
public TypeInformation<?> createTypeInformation(LogicalType producedLogicalType)
DynamicTableSource.Context
LogicalType
.createTypeInformation
in interface DynamicTableSource.Context
public DynamicTableSource.DataStructureConverter createDataStructureConverter(DataType producedDataType)
DynamicTableSource.Context
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.
createDataStructureConverter
in interface DynamicTableSource.Context
LogicalType.supportsInputConversion(Class)
,
ResolvedSchema.toPhysicalRowDataType()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.