public abstract class UpdatedDataFieldsProcessFunctionBase<I,O>
extends org.apache.flink.streaming.api.functions.ProcessFunction<I,O>
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdatedDataFieldsProcessFunctionBase.ConvertAction
|
| Modifier and Type | Field and Description |
|---|---|
protected Catalog |
catalog |
protected CatalogLoader |
catalogLoader |
| Modifier | Constructor and Description |
|---|---|
protected |
UpdatedDataFieldsProcessFunctionBase(CatalogLoader catalogLoader,
TypeMapping typeMapping) |
| Modifier and Type | Method and Description |
|---|---|
protected List<DataField> |
actualUpdatedDataFields(List<DataField> newFields,
Set<FieldIdentifier> latestFields) |
protected void |
applySchemaChange(SchemaManager schemaManager,
SchemaChange schemaChange,
Identifier identifier) |
static UpdatedDataFieldsProcessFunctionBase.ConvertAction |
canConvert(DataType oldType,
DataType newType,
TypeMapping typeMapping) |
void |
close() |
protected List<SchemaChange> |
extractSchemaChanges(SchemaManager schemaManager,
CdcSchema updatedSchema) |
void |
open(org.apache.flink.configuration.Configuration parameters)
Do not annotate with
@override here to maintain compatibility with Flink 2.0+. |
void |
open(OpenContext openContext)
Do not annotate with
@override here to maintain compatibility with Flink 1.18-. |
protected Set<FieldIdentifier> |
updateLatestFields(SchemaManager schemaManager) |
onTimer, processElementprotected final CatalogLoader catalogLoader
protected Catalog catalog
protected UpdatedDataFieldsProcessFunctionBase(CatalogLoader catalogLoader, TypeMapping typeMapping)
public void open(OpenContext openContext) throws Exception
@override here to maintain compatibility with Flink 1.18-.Exceptionpublic void open(org.apache.flink.configuration.Configuration parameters)
@override here to maintain compatibility with Flink 2.0+.open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionprotected void applySchemaChange(SchemaManager schemaManager, SchemaChange schemaChange, Identifier identifier) throws Exception
Exceptionpublic static UpdatedDataFieldsProcessFunctionBase.ConvertAction canConvert(DataType oldType, DataType newType, TypeMapping typeMapping)
protected List<SchemaChange> extractSchemaChanges(SchemaManager schemaManager, CdcSchema updatedSchema)
protected List<DataField> actualUpdatedDataFields(List<DataField> newFields, Set<FieldIdentifier> latestFields)
protected Set<FieldIdentifier> updateLatestFields(SchemaManager schemaManager)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.