private boolean isHistoryRecordDocument(Document document) {
        return new HistoryRecord(document).isValid();
    }
The Record represents a schema change event, it contains either one {@link HistoryRecord} or
{@link TableChange}.

<p>The {@link HistoryRecord} will be used by {@link FlinkDatabaseHistory} which keeps full
history of table change events for all tables, the {@link TableChange} will be used by {@link
FlinkDatabaseSchemaHistory} which keeps the latest table change for each table.</p>
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/mongodb-cdc/src/main/java/org/apache/inlong/sort/cdc/mongodb/debezium/internal/SchemaRecord.java