public class SchemaEvolutionClient extends Object
DataSinkWriterOperator interact with Schema Registry (Could be distributed or
regular) when table schema evolution happened.| 构造器和说明 |
|---|
SchemaEvolutionClient(org.apache.flink.runtime.jobgraph.tasks.TaskOperatorEventGateway toCoordinator,
org.apache.flink.runtime.jobgraph.OperatorID schemaOperatorID) |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<org.apache.flink.cdc.common.schema.Schema> |
getLatestEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId) |
Optional<org.apache.flink.cdc.common.schema.Schema> |
getLatestOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId) |
void |
notifyFlushSuccess(int subtask,
int sourceSubTaskId)
send
FlushSuccessEvent to Schema Registry. |
void |
registerSubtask(int subtask)
send
SinkWriterRegisterEvent to Schema Registry. |
public SchemaEvolutionClient(org.apache.flink.runtime.jobgraph.tasks.TaskOperatorEventGateway toCoordinator,
org.apache.flink.runtime.jobgraph.OperatorID schemaOperatorID)
public void registerSubtask(int subtask)
throws IOException
SinkWriterRegisterEvent to Schema Registry.IOExceptionpublic void notifyFlushSuccess(int subtask,
int sourceSubTaskId)
throws IOException
FlushSuccessEvent to Schema Registry.IOExceptionpublic Optional<org.apache.flink.cdc.common.schema.Schema> getLatestEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId) throws Exception
ExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.