Interface ProjectableDecodingFormat<I>
-
- All Superinterfaces:
DecodingFormat<I>,Format
@PublicEvolving public interface ProjectableDecodingFormat<I> extends DecodingFormat<I>
Extension ofDecodingFormatwhich is able to produce projected rows.For more details on usage and differences between
DecodingFormatandProjectableDecodingFormat, check the documentation ofDecodingFormat.- See Also:
Projection,ProjectedRowData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IcreateRuntimeDecoder(DynamicTableSource.Context context, DataType projectedPhysicalDataType)Creates runtime decoder implementation that is configured to produce data of the given data type.IcreateRuntimeDecoder(DynamicTableSource.Context context, DataType physicalDataType, int[][] projections)Creates runtime decoder implementation that is configured to produce data of typeProjection.of(projections).project(physicalDataType).default booleansupportsNestedProjection()Returns whether this format supports nested projection.-
Methods inherited from interface org.apache.flink.table.connector.format.DecodingFormat
applyReadableMetadata, listReadableMetadata
-
Methods inherited from interface org.apache.flink.table.connector.format.Format
getChangelogMode
-
-
-
-
Method Detail
-
supportsNestedProjection
default boolean supportsNestedProjection()
Returns whether this format supports nested projection.
-
createRuntimeDecoder
I createRuntimeDecoder(DynamicTableSource.Context context, DataType physicalDataType, int[][] projections)
Creates runtime decoder implementation that is configured to produce data of typeProjection.of(projections).project(physicalDataType). For more details on the usage, checkDecodingFormatdocumentation.- Parameters:
context- the context provides several utilities required to instantiate the runtime decoder implementation of the formatphysicalDataType- For more details checkDecodingFormatprojections- the projections array. The array represents the mapping of the fields of the originalDataType, including nested rows. For example,[[0, 2, 1], ...]specifies to include the 2nd field of the 3rd field of the 1st field in the top-level row. It's guaranteed that this array won't contain nested projections ifsupportsNestedProjection()returnsfalse. For more details, checkProjectionas well.- Returns:
- the runtime decoder
- See Also:
DecodingFormat
-
createRuntimeDecoder
default I createRuntimeDecoder(DynamicTableSource.Context context, DataType projectedPhysicalDataType)
Description copied from interface:DecodingFormatCreates runtime decoder implementation that is configured to produce data of the given data type.- Specified by:
createRuntimeDecoderin interfaceDecodingFormat<I>- Parameters:
context- the context provides several utilities required to instantiate the runtime decoder implementation of the formatprojectedPhysicalDataType- For more details check the documentation ofDecodingFormat.
-
-