/** * Get the SystemStreams for the configured input and broadcast streams. * * @return the set of SystemStreams for both standard inputs and broadcast stream inputs. */ public Set<SystemStream> getAllInputStreams() { Set<SystemStream> allInputSS = new HashSet<>(); TaskConfig taskConfig = TaskConfig.Config2Task(this); allInputSS.addAll((Set<? extends SystemStream>) JavaConverters.setAsJavaSetConverter(taskConfig.getInputStreams()).asJava()); allInputSS.addAll(getBroadcastSystemStreams()); return Collections.unmodifiableSet(allInputSS); }
/** * Get the SystemStreams for the configured input and broadcast streams. * * @return the set of SystemStreams for both standard inputs and broadcast stream inputs. */ public Set<SystemStream> getAllInputStreams() { Set<SystemStream> allInputSS = new HashSet<>(); TaskConfig taskConfig = TaskConfig.Config2Task(this); allInputSS.addAll((Set<? extends SystemStream>) JavaConverters.setAsJavaSetConverter(taskConfig.getInputStreams()).asJava()); allInputSS.addAll(getBroadcastSystemStreams()); return Collections.unmodifiableSet(allInputSS); }
/** * Get the SystemStreams for the configured input and broadcast streams. * * @return the set of SystemStreams for both standard inputs and broadcast stream inputs. */ public Set<SystemStream> getAllInputStreams() { Set<SystemStream> allInputSS = new HashSet<>(); TaskConfig taskConfig = TaskConfig.Config2Task(this); allInputSS.addAll((Set<? extends SystemStream>) JavaConverters.setAsJavaSetConverter(taskConfig.getInputStreams()).asJava()); allInputSS.addAll(getBroadcastSystemStreams()); return Collections.unmodifiableSet(allInputSS); }
/** * Get the SystemStreams for the configured input and broadcast streams. * * @return the set of SystemStreams for both standard inputs and broadcast stream inputs. */ public Set<SystemStream> getAllInputStreams() { Set<SystemStream> allInputSS = new HashSet<>(); TaskConfig taskConfig = TaskConfig.Config2Task(this); allInputSS.addAll((Set<? extends SystemStream>) JavaConverters.setAsJavaSetConverter(taskConfig.getInputStreams()).asJava()); allInputSS.addAll(getBroadcastSystemStreams()); return Collections.unmodifiableSet(allInputSS); }
/** * For each input stream specified in config, exactly determine its * partitions, returning a set of SystemStreamPartitions containing them all. */ private Set<SystemStreamPartition> getInputStreamPartitions() { TaskConfig taskConfig = new TaskConfig(config); scala.collection.immutable.Set<SystemStream> inputSystemStreams = taskConfig.getInputStreams(); // Get the set of partitions for each SystemStream from the stream metadata Set<SystemStreamPartition> sspSet = JavaConverters.mapAsJavaMapConverter(streamMetadataCache.getStreamMetadata(inputSystemStreams, true)).asJava() .entrySet() .stream() .flatMap(this::mapSSMToSSP) .collect(Collectors.toSet()); return sspSet; }
/** * Get the SystemStreams for the configured input and broadcast streams. * * @return the set of SystemStreams for both standard inputs and broadcast stream inputs. */ public Set<SystemStream> getAllInputStreams() { Set<SystemStream> allInputSS = new HashSet<>(); TaskConfig taskConfig = TaskConfig.Config2Task(this); allInputSS.addAll((Set<? extends SystemStream>) JavaConverters.setAsJavaSetConverter(taskConfig.getInputStreams()).asJava()); allInputSS.addAll(getBroadcastSystemStreams()); return Collections.unmodifiableSet(allInputSS); }