use of io.dingodb.server.coordinator.meta.GeneralIdHelper in project dingo by dingodb.
the class RowStoreMetaAdaptorImpl method saveStore.
@Override
public void saveStore(Store store) {
GeneralId id = GeneralId.fromStr(store.getId());
ExecutorView view = mapping(store);
scheduleMetaAdaptor.updateExecutorView(view);
storeMap.put(id, store);
endpointStoreId.put(store.getEndpoint(), id);
storeRegion.put(id, store.getRegions().stream().map(Region::getId).map(GeneralIdHelper::region).collect(Collectors.toCollection(ConcurrentHashSet::new)));
}
Aggregations