Github user justinleet commented on the issue:
https://github.com/apache/incubator-metron/pull/363
Looks like you could probably do it an easier way, by constructing
```
ProcessorResult.Builder<Map<String,List<JSONObject>>> builder = new
ProcessorResult.Builder();
return builder.withResult(messages).build();
```
more similar to
```
ProcessorResult.Builder<List<Map<String,Object>>> builder = new
ProcessorResult.Builder();
return
builder.withResult(docs).withProcessErrors(errors).withProcessInvalids(invalids).build();
```
That object already has fields for errors/invalids, and at that point you
can grab them separately from the output docs. Should avoid having to have the
messages the Map keyed by the topic.
What's there looks like it works (from a quick look), but using the results
builtin error/invalids is going to be a little more explicit about what's
happening and probably cleaner.
---
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.
---