@Internal public final class LookupRuntimeProviderContext extends Object implements LookupTableSource.LookupContext
LookupTableSource.Context
.Constructor and Description |
---|
LookupRuntimeProviderContext(int[][] lookupKeys) |
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 . |
int[][] |
getKeys()
Returns an array of key index paths that should be used during the lookup.
|
public LookupRuntimeProviderContext(int[][] lookupKeys)
public int[][] getKeys()
LookupTableSource.LookupContext
For example, given a table with data type ROW < i INT, s STRING, r ROW < i2
INT, s2 STRING > >
, this method would return [[0], [2, 1]]
when i
and
s2
are used for performing a lookup.
getKeys
in interface LookupTableSource.LookupContext
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.