Github user dan-blanchard commented on a diff in the pull request:
https://github.com/apache/storm/pull/525#discussion_r28696363
--- Diff: storm-core/src/jvm/backtype/storm/task/TopologyContext.java ---
@@ -154,6 +154,18 @@ public Fields getThisOutputFields(String streamId) {
}
/**
+ * Gets the declared output fields for the specified stream id for the
component
+ * this task is a part of.
+ */
+ public Map<String, List<String>> getThisOutputFieldsForStreams() {
+ Map<String, List<String>> streamToFields = new HashMap<String,
List<String>>();
+ for (String stream : this.getThisStreams()) {
+ streamToFields.put(stream,
this.getThisOutputFields(stream).toList());
--- End diff --
I'm not a big Java guy, so what's the appropriate spacing here? Tabs or
spaces? And how many?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---