nathanmarz/storm — pull request #731 by thedatachef (2013-11-07 18:13:46+00:00)
Title: Multiple output streams for trident

Addresses issue 638 (http://github.com/nathanmarz/storm/issues/638). @mridulj @mrflip

Consider:

```java

Map outputStreamMapping = new HashMap();
outputStreamMapping.put("streamA", new Fields("field_in_a"));
outputStreamMapping.put("streamB", new Fields("field_in_b"));

s = topology.newStream("testStream", spout);
s = s.each(
s.getOutputFields(),
new DebugMultiStream("streamA", "streamB"),
new StreamMap(outputStreamMapping)
);

streamA = s.getStream("streamA")
streamA.each(Fields.new("field_in_a"), Debug.new);
```