I
- runtime interface needed by the table sink@PublicEvolving public interface EncodingFormat<I> extends Format
Format
for a DynamicTableSink
for writing rows.Modifier and Type | Method and Description |
---|---|
default void |
applyWritableMetadata(List<String> metadataKeys)
Provides a list of metadata keys that the consumed row will contain as appended metadata
columns.
|
I |
createRuntimeEncoder(DynamicTableSink.Context context,
DataType physicalDataType)
Creates runtime encoder implementation that is configured to consume data of the given data
type.
|
default Map<String,DataType> |
listWritableMetadata()
Returns the map of metadata keys and their corresponding data types that can be consumed by
this format for writing.
|
getChangelogMode
I createRuntimeEncoder(DynamicTableSink.Context context, DataType physicalDataType)
default Map<String,DataType> listWritableMetadata()
Metadata columns add additional columns to the table's schema. An encoding format is responsible to accept requested metadata columns at the end of consumed rows and persist them.
See SupportsWritingMetadata
for more information.
Note: This method is only used if the outer DynamicTableSink
implements SupportsWritingMetadata
and calls this method in SupportsWritingMetadata.listWritableMetadata()
.
default void applyWritableMetadata(List<String> metadataKeys)
See SupportsWritingMetadata
for more information.
Note: This method is only used if the outer DynamicTableSink
implements SupportsWritingMetadata
and calls this method in SupportsWritingMetadata.applyWritableMetadata(List, DataType)
.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.