public class SchemaEvolutionClient extends Object
DataSinkWriterOperator interact with SchemaRegistry 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,
org.apache.flink.cdc.common.event.TableId tableId)
send
FlushSuccessEvent to SchemaRegistry. |
void |
registerSubtask(int subtask)
send
SinkWriterRegisterEvent to SchemaRegistry. |
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 SchemaRegistry.IOExceptionpublic void notifyFlushSuccess(int subtask,
org.apache.flink.cdc.common.event.TableId tableId)
throws IOException
FlushSuccessEvent to SchemaRegistry.IOExceptionpublic Optional<org.apache.flink.cdc.common.schema.Schema> getLatestEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId) throws Exception
ExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.