Skip to content

Commit 28b252a

Browse files
committed
refactor: set getXXXIdAndNameMap to private
1 parent 41ce958 commit 28b252a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/org/apache/gravitino/storage/relational/service/MetadataObjectService.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -621,23 +621,23 @@ public static Map<Long, String> getSchemaObjectFullNames(List<Long> ids) {
621621
return schemaIdAndNameMap;
622622
}
623623

624-
public static Map<Long, String> getCatalogIdAndNameMap(List<Long> catalogIds) {
624+
private static Map<Long, String> getCatalogIdAndNameMap(List<Long> catalogIds) {
625625
List<CatalogPO> catalogPOs =
626626
SessionUtils.getWithoutCommit(
627627
CatalogMetaMapper.class, mapper -> mapper.listCatalogPOsByCatalogIds(catalogIds));
628628
return catalogPOs.stream()
629629
.collect(Collectors.toMap(CatalogPO::getCatalogId, CatalogPO::getCatalogName));
630630
}
631631

632-
public static Map<Long, String> getSchemaIdAndNameMap(List<Long> schemaIds) {
632+
private static Map<Long, String> getSchemaIdAndNameMap(List<Long> schemaIds) {
633633
List<SchemaPO> schemaPOS =
634634
SessionUtils.getWithoutCommit(
635635
SchemaMetaMapper.class, mapper -> mapper.listSchemaPOsBySchemaIds(schemaIds));
636636
return schemaPOS.stream()
637637
.collect(Collectors.toMap(SchemaPO::getSchemaId, SchemaPO::getSchemaName));
638638
}
639639

640-
public static Map<Long, String> getTableIdAndNameMap(List<Long> tableIds) {
640+
private static Map<Long, String> getTableIdAndNameMap(List<Long> tableIds) {
641641
List<TablePO> tablePOS =
642642
SessionUtils.getWithoutCommit(
643643
TableMetaMapper.class, mapper -> mapper.listTablePOsByTableIds(tableIds));

0 commit comments

Comments
 (0)