Github user ijokarumawak commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2777#discussion_r194933630
--- Diff:
nifi-nar-bundles/nifi-standard-services/nifi-lookup-service-api/src/main/java/org/apache/nifi/lookup/LookupService.java
---
@@ -35,6 +35,19 @@
*/
Optional<T> lookup(Map<String, Object> coordinates) throws
LookupFailureException;
+ /**
+ * Looks up a value that corresponds to the given map, coordinates.
FlowFile attributes will also be passed into the
+ * map labeled context.
+ *
+ * @param coordinates a Map of key/value pairs that indicate the
information that should be looked up
+ * @param context a Map of FlowFile attributes
--- End diff --
I'd suggest to make the description more lenient. LookupService is just an
interface and is not limited to be called by Processors. This `context` map can
be anything contextual variables. FlowFile attributes are an example.
---