public TaskSideInputStorageManager( TaskName taskName, StreamMetadataCache streamMetadataCache, String storeBaseDir, Map<String, StorageEngine> sideInputStores, Map<String, SideInputsProcessor> storesToProcessor, Map<String, Set<SystemStreamPartition>> storesToSSPs, SystemAdmins systemAdmins, Config config, Clock clock) { this.clock = clock; this.stores = sideInputStores; this.storeBaseDir = storeBaseDir; this.storeToSSps = storesToSSPs; this.streamMetadataCache = streamMetadataCache; this.systemAdmins = systemAdmins; this.taskName = taskName; this.storeToProcessor = storesToProcessor; validateStoreConfiguration(); this.sspsToStores = new HashMap<>(); storesToSSPs.forEach((store, ssps) -> { for (SystemStreamPartition ssp: ssps) { sspsToStores.computeIfAbsent(ssp, key -> new HashSet<>()); sspsToStores.computeIfPresent(ssp, (key, value) -> { value.add(store); return value; }); } }); }
public TaskSideInputStorageManager( TaskName taskName, StreamMetadataCache streamMetadataCache, String storeBaseDir, Map<String, StorageEngine> sideInputStores, Map<String, SideInputsProcessor> storesToProcessor, Map<String, Set<SystemStreamPartition>> storesToSSPs, SystemAdmins systemAdmins, Config config, Clock clock) { this.clock = clock; this.stores = sideInputStores; this.storeBaseDir = storeBaseDir; this.storeToSSps = storesToSSPs; this.streamMetadataCache = streamMetadataCache; this.systemAdmins = systemAdmins; this.taskName = taskName; this.storeToProcessor = storesToProcessor; validateStoreConfiguration(); this.sspsToStores = new HashMap<>(); storesToSSPs.forEach((store, ssps) -> { for (SystemStreamPartition ssp: ssps) { sspsToStores.computeIfAbsent(ssp, key -> new HashSet<>()); sspsToStores.computeIfPresent(ssp, (key, value) -> { value.add(store); return value; }); } }); }
public TaskSideInputStorageManager( TaskName taskName, StreamMetadataCache streamMetadataCache, String storeBaseDir, Map<String, StorageEngine> sideInputStores, Map<String, SideInputsProcessor> storesToProcessor, Map<String, Set<SystemStreamPartition>> storesToSSPs, SystemAdmins systemAdmins, Config config, Clock clock) { this.clock = clock; this.stores = sideInputStores; this.storeBaseDir = storeBaseDir; this.storeToSSps = storesToSSPs; this.streamMetadataCache = streamMetadataCache; this.systemAdmins = systemAdmins; this.taskName = taskName; this.storeToProcessor = storesToProcessor; validateStoreConfiguration(); this.sspsToStores = new HashMap<>(); storesToSSPs.forEach((store, ssps) -> { for (SystemStreamPartition ssp: ssps) { sspsToStores.computeIfAbsent(ssp, key -> new HashSet<>()); sspsToStores.computeIfPresent(ssp, (key, value) -> { value.add(store); return value; }); } }); }
public TaskSideInputStorageManager( TaskName taskName, StreamMetadataCache streamMetadataCache, String storeBaseDir, Map<String, StorageEngine> sideInputStores, Map<String, SideInputsProcessor> storesToProcessor, Map<String, Set<SystemStreamPartition>> storesToSSPs, SystemAdmins systemAdmins, Config config, Clock clock) { this.clock = clock; this.stores = sideInputStores; this.storeBaseDir = storeBaseDir; this.storeToSSps = storesToSSPs; this.streamMetadataCache = streamMetadataCache; this.systemAdmins = systemAdmins; this.taskName = taskName; this.storeToProcessor = storesToProcessor; validateStoreConfiguration(); this.sspsToStores = new HashMap<>(); storesToSSPs.forEach((store, ssps) -> { for (SystemStreamPartition ssp: ssps) { sspsToStores.computeIfAbsent(ssp, key -> new HashSet<>()); sspsToStores.computeIfPresent(ssp, (key, value) -> { value.add(store); return value; }); } }); }
public TaskSideInputStorageManager( TaskName taskName, StreamMetadataCache streamMetadataCache, String storeBaseDir, Map<String, StorageEngine> sideInputStores, Map<String, SideInputsProcessor> storesToProcessor, Map<String, Set<SystemStreamPartition>> storesToSSPs, SystemAdmins systemAdmins, Config config, Clock clock) { this.clock = clock; this.stores = sideInputStores; this.storeBaseDir = storeBaseDir; this.storeToSSps = storesToSSPs; this.streamMetadataCache = streamMetadataCache; this.systemAdmins = systemAdmins; this.taskName = taskName; this.storeToProcessor = storesToProcessor; validateStoreConfiguration(); this.sspsToStores = new HashMap<>(); storesToSSPs.forEach((store, ssps) -> { for (SystemStreamPartition ssp: ssps) { sspsToStores.computeIfAbsent(ssp, key -> new HashSet<>()); sspsToStores.computeIfPresent(ssp, (key, value) -> { value.add(store); return value; }); } }); }