Skip to content

Commit eaac020

Browse files
committed
Fix recent build failure:
Recent merge of 4da60e3 (#5510) was calling a method that had been removed (SystemTables.containsTableName). It seems the method was probably removed on accident, so added it back.
1 parent 4da60e3 commit eaac020

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/java/org/apache/accumulo/core/metadata/SystemTables.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ private SystemTables(String simpleName, String id) {
6161

6262
private static final Set<TableId> ALL_IDS =
6363
Arrays.stream(values()).map(SystemTables::tableId).collect(Collectors.toUnmodifiableSet());
64+
private static final Set<String> ALL_NAMES =
65+
Arrays.stream(values()).map(SystemTables::tableName).collect(Collectors.toUnmodifiableSet());
6466

6567
private static final Map<String,String> TABLE_ID_TO_SIMPLE_NAME =
6668
Arrays.stream(values()).collect(Collectors.toUnmodifiableMap(
@@ -82,6 +84,10 @@ public static boolean containsTableId(TableId tableId) {
8284
return ALL_IDS.contains(tableId);
8385
}
8486

87+
public static boolean containsTableName(String tableName) {
88+
return ALL_NAMES.contains(tableName);
89+
}
90+
8591
public static Map<String,String> tableIdToSimpleNameMap() {
8692
return TABLE_ID_TO_SIMPLE_NAME;
8793
}

0 commit comments

Comments
 (0)