Skip to content

Commit

Permalink
Fix documents typo (#33966)
Browse files Browse the repository at this point in the history
  • Loading branch information
wulangcode authored Dec 8, 2024
1 parent 18162e7 commit 6eba24e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public final class ShardingSphereSchema {
tables.forEach((key, value) -> this.tables.put(key.toLowerCase(), value));
}
~~~
和 schema 的概念契合,一个 shcema 含有若干个表。`ShardingSphereSchema` 的属性是一个 map 结构,key 为 `tableName`,value 是表名对应表的元数据。主要是通过构造函数完成初始化。所以,还是重点对于表元数据的加载,下面我们从入口跟进。
和 schema 的概念契合,一个 schema 含有若干个表。`ShardingSphereSchema` 的属性是一个 map 结构,key 为 `tableName`,value 是表名对应表的元数据。主要是通过构造函数完成初始化。所以,还是重点对于表元数据的加载,下面我们从入口跟进。

整个元数据加载的核心入口在 `org.apache.shardingsphere.infra.context.metadata.MetaDataContextsBuilder#build` 中。在 build 中主要是通过配置的规则,组装和加载相对应的元数据,核心代码如下:

Expand Down

0 comments on commit 6eba24e

Please sign in to comment.