private void emit(SourceRecord inRecord, RowData physicalRow, Collector<RowData> collector) {

        // filter the records that is outside the `rowKind`
        if (!rowKindValidator.validate(physicalRow.getRowKind())) {
            return;
        }

        if (!hasMetadata) {
            collector.collect(physicalRow);
            return;
        }

        appendMetadataCollector.inputRecord = inRecord;
        appendMetadataCollector.outputCollector = collector;
        appendMetadataCollector.collect(physicalRow);
    }
Validator to validate the row value.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/mongodb-cdc/src/main/java/org/apache/inlong/sort/cdc/mongodb/debezium/table/MongoDBConnectorDeserializationSchema.java