Github user merrimanr commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/127#discussion_r64668872
--- Diff:
metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/ParserBolt.java
---
@@ -60,7 +93,25 @@ public void prepare(Map stormConf, TopologyContext
context, OutputCollector coll
super.prepare(stormConf, context, collector);
this.collector = collector;
parser.init();
- writer.init();
+
+ if(isBulk) {
+ writerTransformer = config -> new ParserWriterConfiguration(config);
--- End diff --
Curious why a Function is used here. Why not just instantiate a
WriterConfiguration object for each case and pass that to messageWriter.init?
Is there a benefit to doing it this way?
---
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.
---