From 008b0dd7ca511c994d6602c722d7fd165a114a2c Mon Sep 17 00:00:00 2001 From: zhangliang Date: Thu, 16 Jan 2025 22:14:48 +0800 Subject: [PATCH] Add ShardingSphereDefaultStatisticsBuilder --- .../builder/ShardingSphereDefaultStatisticsBuilder.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/ShardingSphereDefaultStatisticsBuilder.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/ShardingSphereDefaultStatisticsBuilder.java index 110486041e615..6cd3eafbe57d6 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/ShardingSphereDefaultStatisticsBuilder.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/ShardingSphereDefaultStatisticsBuilder.java @@ -37,6 +37,12 @@ public final class ShardingSphereDefaultStatisticsBuilder { private static final String SHARDING_TABLE_STATISTICS = "sharding_table_statistics"; + /** + * Build default statistics data. + * + * @param database database + * @return built statistics data + */ public ShardingSphereDatabaseData build(final ShardingSphereDatabase database) { ShardingSphereDatabaseData result = new ShardingSphereDatabaseData(); if (database.containsSchema(SHARDINGSPHERE)) {