@PublicEvolving public interface ProjectableDecodingFormat<I> extends DecodingFormat<I>
DecodingFormat which is able to produce projected rows.
For more details on usage and differences between DecodingFormat and ProjectableDecodingFormat, check the documentation of DecodingFormat.
Projection,
ProjectedRowData| Modifier and Type | Method and Description |
|---|---|
default I |
createRuntimeDecoder(DynamicTableSource.Context context,
DataType projectedPhysicalDataType)
Creates runtime decoder implementation that is configured to produce data of the given data
type.
|
I |
createRuntimeDecoder(DynamicTableSource.Context context,
DataType physicalDataType,
int[][] projections)
Creates runtime decoder implementation that is configured to produce data of type
Projection.of(projections).project(physicalDataType). |
default boolean |
supportsNestedProjection()
Returns whether this format supports nested projection.
|
applyReadableMetadata, listReadableMetadatagetChangelogModedefault boolean supportsNestedProjection()
I createRuntimeDecoder(DynamicTableSource.Context context, DataType physicalDataType, int[][] projections)
Projection.of(projections).project(physicalDataType). For more details on the usage, check
DecodingFormat documentation.context - the context provides several utilities required to instantiate the runtime
decoder implementation of the formatphysicalDataType - For more details check DecodingFormatprojections - the projections array. The array represents the mapping of the fields of
the original DataType, 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 if supportsNestedProjection() returns false. For more details, check Projection as well.DecodingFormatdefault I createRuntimeDecoder(DynamicTableSource.Context context, DataType projectedPhysicalDataType)
DecodingFormatcreateRuntimeDecoder in interface DecodingFormat<I>context - the context provides several utilities required to instantiate the runtime
decoder implementation of the formatprojectedPhysicalDataType - For more details check the documentation of DecodingFormat.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.