Class SchemaEvolutionClient
- java.lang.Object
-
- org.apache.flink.cdc.runtime.operators.sink.SchemaEvolutionClient
-
public class SchemaEvolutionClient extends Object
Client forDataSinkWriterOperatorinteract with Schema Registry (Could be distributed or regular) when table schema evolution happened.
-
-
Constructor Summary
Constructors Constructor Description SchemaEvolutionClient(org.apache.flink.runtime.jobgraph.tasks.TaskOperatorEventGateway toCoordinator, org.apache.flink.runtime.jobgraph.OperatorID schemaOperatorID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Schema>getLatestEvolvedSchema(TableId tableId)Optional<Schema>getLatestOriginalSchema(TableId tableId)voidnotifyFlushSuccess(int subtask, int sourceSubTaskId)sendFlushSuccessEventto Schema Registry.voidregisterSubtask(int subtask)sendSinkWriterRegisterEventto Schema Registry.
-
-
-
Method Detail
-
registerSubtask
public void registerSubtask(int subtask) throws IOExceptionsendSinkWriterRegisterEventto Schema Registry.- Throws:
IOException
-
notifyFlushSuccess
public void notifyFlushSuccess(int subtask, int sourceSubTaskId) throws IOExceptionsendFlushSuccessEventto Schema Registry.- Throws:
IOException
-
getLatestEvolvedSchema
public Optional<Schema> getLatestEvolvedSchema(TableId tableId) throws Exception
- Throws:
Exception
-
-