This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 37161cd267a Rename RowStatisticsCollectorUtils (#34440)
37161cd267a is described below
commit 37161cd267ae7f83b5134d5f2da0bdaf96c196ef
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Jan 23 15:42:43 2025 +0800
Rename RowStatisticsCollectorUtils (#34440)
---
...eTableDataCollectorUtils.java => RowStatisticsCollectorUtils.java} | 4 ++--
.../statistics/collector/tables/PgClassTableStatisticsCollector.java | 4 ++--
.../collector/tables/PgNamespaceTableStatisticsCollector.java | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/ShardingSphereTableDataCollectorUtils.java
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/RowStatisticsCollectorUtils.java
similarity index 96%
rename from
infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/ShardingSphereTableDataCollectorUtils.java
rename to
infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/RowStatisticsCollectorUtils.java
index 3fda8561dd4..7117eb93255 100644
---
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/ShardingSphereTableDataCollectorUtils.java
+++
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/RowStatisticsCollectorUtils.java
@@ -28,10 +28,10 @@ import java.util.List;
import java.util.Map;
/**
- * Table data collector utility class.
+ * Row statistics collector utility class.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class ShardingSphereTableDataCollectorUtils {
+public final class RowStatisticsCollectorUtils {
/**
* Create row value.
diff --git
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgClassTableStatisticsCollector.java
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgClassTableStatisticsCollector.java
index b56320e5135..4e92fd9a513 100644
---
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgClassTableStatisticsCollector.java
+++
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgClassTableStatisticsCollector.java
@@ -24,7 +24,7 @@ import
org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSp
import org.apache.shardingsphere.infra.metadata.statistics.RowStatistics;
import org.apache.shardingsphere.infra.metadata.statistics.TableStatistics;
import
org.apache.shardingsphere.infra.metadata.statistics.collector.TableStatisticsCollector;
-import
org.apache.shardingsphere.infra.metadata.statistics.collector.ShardingSphereTableDataCollectorUtils;
+import
org.apache.shardingsphere.infra.metadata.statistics.collector.RowStatisticsCollectorUtils;
import java.sql.SQLException;
import java.util.Collection;
@@ -61,7 +61,7 @@ public final class PgClassTableStatisticsCollector implements
TableStatisticsCol
columnValues.put("relnamespace", relNamespace);
columnValues.put("relname", each.getName());
columnValues.put("relkind", "r");
- result.add(new
RowStatistics(ShardingSphereTableDataCollectorUtils.createRowValue(columnValues,
table)));
+ result.add(new
RowStatistics(RowStatisticsCollectorUtils.createRowValue(columnValues, table)));
}
return result;
}
diff --git
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgNamespaceTableStatisticsCollector.java
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgNamespaceTableStatisticsCollector.java
index 3d9f3281504..abf7543a3cc 100644
---
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgNamespaceTableStatisticsCollector.java
+++
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/collector/tables/PgNamespaceTableStatisticsCollector.java
@@ -24,7 +24,7 @@ import
org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSp
import org.apache.shardingsphere.infra.metadata.statistics.RowStatistics;
import org.apache.shardingsphere.infra.metadata.statistics.TableStatistics;
import
org.apache.shardingsphere.infra.metadata.statistics.collector.TableStatisticsCollector;
-import
org.apache.shardingsphere.infra.metadata.statistics.collector.ShardingSphereTableDataCollectorUtils;
+import
org.apache.shardingsphere.infra.metadata.statistics.collector.RowStatisticsCollectorUtils;
import java.sql.SQLException;
import java.util.List;
@@ -56,7 +56,7 @@ public final class PgNamespaceTableStatisticsCollector
implements TableStatistic
Map<String, Object> columnValues = new CaseInsensitiveMap<>(2, 1F);
columnValues.put("oid", oid);
columnValues.put("nspname", schemaName);
- return
ShardingSphereTableDataCollectorUtils.createRowValue(columnValues, table);
+ return RowStatisticsCollectorUtils.createRowValue(columnValues, table);
}
@Override