Set<String> tableNames = connection.tableNames();
@Override protected Map<String, Table> getTableMap() { if (!discoverTables) { return ImmutableMap.of(); } if (tableMap == null) { final DruidConnectionImpl connection = new DruidConnectionImpl(url, coordinatorUrl); Set<String> tableNames = connection.tableNames(); tableMap = Maps.asMap( ImmutableSet.copyOf(tableNames), CacheBuilder.newBuilder() .build(CacheLoader.from(name -> table(name, connection)))); } return tableMap; }