[cdc-connector][mysql] Support metadata 'operation' virtual column for MySql Connector. (#2913)
parent
6b6d9fcb0b
commit
8eba910063
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2023 Ververica Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.ververica.cdc.debezium.table;
|
||||
|
||||
import org.apache.flink.table.data.RowData;
|
||||
|
||||
import org.apache.kafka.connect.source.SourceRecord;
|
||||
|
||||
/**
|
||||
* A converter converts {@link SourceRecord} metadata and {@link RowData} into Flink internal data
|
||||
* structures.
|
||||
*/
|
||||
public interface MetadataWithRowDataConverter extends MetadataConverter {
|
||||
Object read(SourceRecord record, RowData rowData);
|
||||
|
||||
default Object read(SourceRecord record) {
|
||||
throw new UnsupportedOperationException(
|
||||
"This method should never be called, please call the read(SourceRecord, RowData) method instead.");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue