/** * Gets the set of streams declared for the component of this task. */ public Set<String> getThisStreams() { return getComponentStreams(getThisComponentId()); }
/** * Gets the declared input fields for this component. * * @return A map from sources to streams to fields. */ public Map<String, Map<String, List<String>>> getThisInputFields() { Map<String, Map<String, List<String>>> outputMap = new HashMap<>(); for (Map.Entry<GlobalStreamId, Grouping> entry : this.getThisSources().entrySet()) { String componentId = entry.getKey().get_componentId(); Set<String> streams = getComponentStreams(componentId); for (String stream : streams) { Map<String, List<String>> streamFieldMap = outputMap.get(componentId); if (streamFieldMap == null) { streamFieldMap = new HashMap<>(); outputMap.put(componentId, streamFieldMap); } streamFieldMap.put(stream, getComponentOutputFields(componentId, stream).toList()); } } return outputMap; }
/** * Gets the set of streams declared for the component of this task. */ public Set<String> getThisStreams() { return getComponentStreams(getThisComponentId()); }
/** * Gets the declared input fields for this component. * * @return A map from sources to streams to fields. */ public Map<String, Map<String, List<String>>> getThisInputFields() { Map<String, Map<String, List<String>>> outputMap = new HashMap<>(); for (Map.Entry<GlobalStreamId, Grouping> entry : this.getThisSources().entrySet()) { String componentId = entry.getKey().get_componentId(); Set<String> streams = getComponentStreams(componentId); for (String stream : streams) { Map<String, List<String>> streamFieldMap = outputMap.get(componentId); if (streamFieldMap == null) { streamFieldMap = new HashMap<>(); outputMap.put(componentId, streamFieldMap); } streamFieldMap.put(stream, getComponentOutputFields(componentId, stream).toList()); } } return outputMap; }