@Internal public class SchemaRegistryRequestHandler extends Object implements Closeable
SchemaRegistry.| 构造器和说明 |
|---|
SchemaRegistryRequestHandler(org.apache.flink.cdc.common.sink.MetadataApplier metadataApplier,
SchemaManager schemaManager,
SchemaDerivation schemaDerivation,
org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior schemaChangeBehavior,
org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
flushSuccess(org.apache.flink.cdc.common.event.TableId tableId,
int sinkSubtask,
int parallelism)
Record flushed sink subtasks after receiving FlushSuccessEvent.
|
void |
getSchemaChangeResult(CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> response) |
void |
handleSchemaChangeRequest(SchemaChangeRequest request,
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> response)
Handle the
SchemaChangeRequest and wait for all sink subtasks flushing. |
void |
registerSinkWriter(int sinkSubtask)
Register a sink subtask.
|
public SchemaRegistryRequestHandler(org.apache.flink.cdc.common.sink.MetadataApplier metadataApplier,
SchemaManager schemaManager,
SchemaDerivation schemaDerivation,
org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior schemaChangeBehavior,
org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Context context)
public void handleSchemaChangeRequest(SchemaChangeRequest request, CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> response)
SchemaChangeRequest and wait for all sink subtasks flushing.request - the received SchemaChangeRequestpublic void registerSinkWriter(int sinkSubtask)
sinkSubtask - the sink subtask to registerpublic void flushSuccess(org.apache.flink.cdc.common.event.TableId tableId,
int sinkSubtask,
int parallelism)
tableId - the subtask in SchemaOperator and table that the FlushEvent is aboutsinkSubtask - the sink subtask succeed flushingpublic void getSchemaChangeResult(CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> response)
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.