Search in sources :

Example 1 with GeneralIdHelper

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)));
}
Also used : ExecutorView(io.dingodb.server.coordinator.resource.impl.ExecutorView) ConcurrentHashSet(com.alipay.remoting.util.ConcurrentHashSet) GeneralIdHelper(io.dingodb.server.coordinator.meta.GeneralIdHelper) GeneralId(io.dingodb.server.coordinator.GeneralId)

Aggregations

ConcurrentHashSet (com.alipay.remoting.util.ConcurrentHashSet)1 GeneralId (io.dingodb.server.coordinator.GeneralId)1 GeneralIdHelper (io.dingodb.server.coordinator.meta.GeneralIdHelper)1 ExecutorView (io.dingodb.server.coordinator.resource.impl.ExecutorView)1