@Internal
public class SchemaOperator
extends org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.cdc.common.event.Event>
implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.flink.cdc.common.event.Event,org.apache.flink.cdc.common.event.Event>
SchemaRegistry for incoming SchemaChangeEvents and block the stream for tables before their schema changes finish.| Constructor and Description |
|---|
SchemaOperator(List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.cdc.common.event.TableId>> routingRules) |
SchemaOperator(List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.cdc.common.event.TableId>> routingRules,
java.time.Duration rpcTimeOut) |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeState(org.apache.flink.runtime.state.StateInitializationContext context) |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.cdc.common.event.Event> streamRecord)
This method is guaranteed to not be called concurrently with other methods of the operator.
|
void |
setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?,?> containingTask,
org.apache.flink.streaming.api.graph.StreamConfig config,
org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.cdc.common.event.Event>> output) |
close, finish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, open, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotState, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementclose, finish, getMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeypublic SchemaOperator(List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.cdc.common.event.TableId>> routingRules)
public void setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?,?> containingTask,
org.apache.flink.streaming.api.graph.StreamConfig config,
org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.cdc.common.event.Event>> output)
setup in interface org.apache.flink.streaming.api.operators.SetupableStreamOperator<org.apache.flink.cdc.common.event.Event>setup in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.cdc.common.event.Event>public void initializeState(org.apache.flink.runtime.state.StateInitializationContext context)
throws Exception
initializeState in interface org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorinitializeState in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.cdc.common.event.Event>Exceptionpublic void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.cdc.common.event.Event> streamRecord)
throws InterruptedException,
TimeoutException
processElement in interface org.apache.flink.streaming.api.operators.Input<org.apache.flink.cdc.common.event.Event>InterruptedExceptionTimeoutExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.