get all bolts' inputs and spouts' outputs <Bolt_name, <Input_name>> <Spout_name, <Output_name>>

@return all bolts' inputs and spouts' outputs
187267
public static Map<String, Set<String>> buildSpoutOutoputAndBoltInputMap(DefaultTopologyAssignContext context) {
        Set<String> bolts = context.getRawTopology().get_bolts().keySet();
        Set<String> spouts = context.getRawTopology().get_spouts().keySet();
        Map<String, Set<String>> relationship = new HashMap<>();
        for (Entry<String, Bolt> entry : context.getRawTopology().get_bolts().entrySet()) {
            Map<GlobalStreamId, Grouping> inputs = entry.getValue().get_common().get_inputs();
            Set<String> input = new HashSet<>();
            relationship.put(entry.getKey(), input);
            for (Entry<GlobalStreamId, Grouping> inEntry : inputs.entrySet()) {
                String component = inEntry.getKey().get_componentId();
                input.add(component);
                if (!bolts.contains(component)) {
                    // spout
                    Set<String> spoutOutput = relationship.get(component);
                    if (spoutOutput == null) {
                        spoutOutput = new HashSet<>();
                        relationship.put(component, spoutOutput);
                    }
                    spoutOutput.add(entry.getKey());
                }
            }
        }
        for (String spout : spouts) {
            if (relationship.get(spout) == null)
                relationship.put(spout, new HashSet<String>());
        }
        for (String bolt : bolts) {
            if (relationship.get(bolt) == null)
                relationship.put(bolt, new HashSet<String>());
        }
        return relationship;
    }
1280771
private List<TaskField> getAllTaskExtendedAttributes()
   {
      ArrayList<TaskField> result = new ArrayList<TaskField>();
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_TEXT));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_START));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_FINISH));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_COST));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_DATE));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_FLAG));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_NUMBER));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_DURATION));
      result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_OUTLINE_CODE));
      result.addAll(Arrays.asList(TaskFieldLists.ENTERPRISE_COST));
      result.addAll(Arrays.asList(TaskFieldLists.ENTERPRISE_DATE));
      result.addAll(Arrays.asList(TaskFieldLists.ENTERPRISE_DURATION));
      result.addAll(Arrays.asList(TaskFieldLists.ENTERPRISE_FLAG));
      result.addAll(Arrays.asList(TaskFieldLists.ENTERPRISE_NUMBER));
      result.addAll(Arrays.asList(TaskFieldLists.ENTERPRISE_TEXT));
      return result;
   }
1065163
public List<Flow<Job<T>>> getAllFlow()
   {
      List<Flow<Job<T>>> list = new ArrayList<Flow<Job<T>>>();
      List<Node> nodeList = childNode.get("flow");
      for(Node node: nodeList)
      {
         Flow<Job<T>>  type = new FlowImpl<Job<T>>(this, "flow", childNode, node);
         list.add(type);
      }
      return list;
   }
123580
public Set<Failure> getCurrentFailures() {
        Set<Failure> failures = new HashSet<Failure>();
        failures.addAll(this.getFullCurrentFailures().keySet());
        for (Scenario s : this.getScenarios()) {
            failures.addAll(s.getCurrentFailures());
        }
        return failures;
    }
751988
public Iterator<T> getInputSplits() {

		final InputSplitProvider provider = getEnvironment().getInputSplitProvider();

		return new Iterator<T>() {

			private T nextSplit;

			@Override
			public boolean hasNext() {

				if (this.nextSplit == null) {

					final InputSplit split = provider.getNextInputSplit();
					if (split != null) {
						@SuppressWarnings("unchecked")
						final T tSplit = (T) split;
						this.nextSplit = tSplit;
						return true;
					} else {
						return false;
					}
				} else {
					return true;
				}
			}

			@Override
			public T next() {
				if (this.nextSplit == null && !hasNext()) {
					throw new NoSuchElementException();
				}

				final T tmp = this.nextSplit;
				this.nextSplit = null;
				return tmp;
			}

			@Override
			public void remove() {
				throw new UnsupportedOperationException();
			}
		};
	}
1186008
public List<SupportsType<PortletType<T>>> getAllSupports()
   {
      List<SupportsType<PortletType<T>>> list = new ArrayList<SupportsType<PortletType<T>>>();
      List<Node> nodeList = childNode.get("supports");
      for(Node node: nodeList)
      {
         SupportsType<PortletType<T>>  type = new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode, node);
         list.add(type);
      }
      return list;
   }
1169637
public java.util.List<String> getTaskArns() {
        if (taskArns == null) {
            taskArns = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return taskArns;
    }
1275003
public List<String> getBoltNames(PhysicalPlan pp) {
    TopologyAPI.Topology localTopology = pp.getTopology();
    ArrayList<String> boltNames = new ArrayList<>();
    for (TopologyAPI.Bolt bolt : localTopology.getBoltsList()) {
      boltNames.add(bolt.getComp().getName());
    }

    return boltNames;
  }
771776
public java.util.List<Resource> getResources() {
        if (resources == null) {
            resources = new com.amazonaws.internal.SdkInternalList<Resource>();
        }
        return resources;
    }
244485
public ArrayList getChunks() {
		ArrayList tmp = new ArrayList();
		for (Iterator i = arrayList.iterator(); i.hasNext(); ) {
			tmp.addAll(((Element) i.next()).getChunks());
		}
		return tmp;
	}
783903
public java.util.List<Resource> getTotalResources() {
        if (totalResources == null) {
            totalResources = new com.amazonaws.internal.SdkInternalList<Resource>();
        }
        return totalResources;
    }
1112202
public List<FacesConfigFlowDefinitionFlowReturnType<FacesConfigFlowDefinitionType<T>>> getAllFlowReturn()
   {
      List<FacesConfigFlowDefinitionFlowReturnType<FacesConfigFlowDefinitionType<T>>> list = new ArrayList<FacesConfigFlowDefinitionFlowReturnType<FacesConfigFlowDefinitionType<T>>>();
      List<Node> nodeList = childNode.get("flow-return");
      for(Node node: nodeList)
      {
         FacesConfigFlowDefinitionFlowReturnType<FacesConfigFlowDefinitionType<T>>  type = new FacesConfigFlowDefinitionFlowReturnTypeImpl<FacesConfigFlowDefinitionType<T>>(this, "flow-return", childNode, node);
         list.add(type);
      }
      return list;
   }
1289384
public IntList getRoots() {
    IntList roots = new IntArrayList();
    for(int i = 0; i < used; i++) {
      // roots or one element in component
      if(parent[i] == i) {
        roots.add(i);
      }
    }
    return roots;
  }
534749
public Set<String> getIncludeRoots() {

        List<String> pathList = new ArrayList<String>(m_includes);
        Set<String> includeRoots = new HashSet<String>();
        Collections.sort(pathList);
        while (!pathList.isEmpty()) {
            Iterator<String> iterator = pathList.iterator();
            String firstPath = iterator.next();
            includeRoots.add(firstPath);
            iterator.remove();
            while (iterator.hasNext()) {
                String currentPath = iterator.next();
                if (CmsStringUtil.isPrefixPath(firstPath, currentPath)) {
                    iterator.remove();
                }
            }
        }
        return includeRoots;
    }
595032
public java.util.List<StackResource> getStackResources() {
        if (stackResources == null) {
            stackResources = new com.amazonaws.internal.SdkInternalList<StackResource>();
        }
        return stackResources;
    }
188767
public synchronized Collection<T> getAll() {
    List<T> all = new ArrayList<T>(size);
    for (T e = head; e != null; e = e.getNext()) {
      all.add(e);
    }
    return all;
  }
893946
public List<Symbol> getAllSymbolsSorted() {
    List<Symbol> sortedSymbols = getNaturalSymbolOrdering().sortedCopy(symbols.values());
    return sortedSymbols;
  }