Github user cestella commented on a diff in the pull request:
https://github.com/apache/metron/pull/621#discussion_r123512057
--- Diff:
metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/ParserBolt.java
---
@@ -118,6 +116,27 @@ protected void initializeStellar() {
StellarFunctions.initialize(stellarContext);
}
+ private Map<String, Object> getMetadata(Tuple t, boolean readMetadata) {
+ Map<String, Object> ret = new HashMap<>();
+ if(!readMetadata) {
+ return ret;
+ }
+
ret.put(SimpleStormKafkaBuilder.FieldsConfiguration.TOPIC.getFieldName(),
t.getString(2));
--- End diff --
The contract is that the value is the first element in the tuple, the key
the 2nd element in the tuple and any metadata from the environment passed in
after that.
---
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.
---