Interface ProjectableDecodingFormat<I>
- All Superinterfaces:
DecodingFormat<I>,Format
Extension of
DecodingFormat which is able to produce projected rows.
For more details on usage and differences between DecodingFormat and ProjectableDecodingFormat, check the documentation of DecodingFormat.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault IcreateRuntimeDecoder(DynamicTableSource.Context context, DataType projectedPhysicalDataType) Creates runtime decoder implementation that is configured to produce data of the given data type.createRuntimeDecoder(DynamicTableSource.Context context, DataType physicalDataType, int[][] projections) Creates runtime decoder implementation that is configured to produce data of typeProjection.of(projections).project(physicalDataType).default booleanReturns whether this format supports nested projection.Methods inherited from interface org.apache.flink.table.connector.format.DecodingFormat
applyReadableMetadata, listReadableMetadataMethods inherited from interface org.apache.flink.table.connector.format.Format
getChangelogMode
-
Method Details
-
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:
-
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.
-