@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ChangeStreamDescriptor that = (ChangeStreamDescriptor) o;
        return Objects.equals(database, that.database)
                && Objects.equals(collection, that.collection)
                && Objects.equals(databaseRegex, that.databaseRegex)
                && Objects.equals(namespaceRegex, that.namespaceRegex);
    }
A structure describes a filter of change stream targets.
Copy from com.ververica:flink-connector-mongodb-cdc:2.3.0.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/mongodb-cdc/src/main/java/org/apache/inlong/sort/cdc/mongodb/source/offset/ChangeStreamDescriptor.java