private void writeTableIds(Collection<TableId> tableIds, DataOutputSerializer out)
            throws IOException {
        final int size = tableIds.size();
        out.writeInt(size);
        for (TableId tableId : tableIds) {
            boolean useCatalogBeforeSchema = shouldUseCatalogBeforeSchema(tableId);
            out.writeBoolean(useCatalogBeforeSchema);
            out.writeUTF(tableId.toString());
        }
    }
The {@link SimpleVersionedSerializer Serializer} for the {@link PendingSplitsState}.
Copy from com.ververica:flink-cdc-base:2.3.0.
inlong-sort/sort-flink/cdc-base/src/main/java/org/apache/inlong/sort/cdc/base/source/assigner/state/PendingSplitsStateSerializer.java