Github user olegz commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1394#discussion_r101050107
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/SplitText.java
 ---
    @@ -326,6 +329,27 @@ public void process(InputStream in) throws IOException 
{
             return splitFlowFiles;
         }
     
    +    /**
    +     * Will merge the two files. This operation has different semantics 
then
    +     * sessioin.merge. Also, it always expects 2 and no more then 2 flow 
files,
    +     * so vararg signature primarily for simplification.
    +     */
    +    private FlowFile merge(ProcessSession session, FlowFile... flowFiles) {
    --- End diff --
    
    So, in the context of this specific processor what you're saying is true - 
_prepend header_. But, the operation itself has nothing to do with either 
_headers_ or _prepend_.  It simply merges two files together in the order they 
have been supplied and eventually should probably be considered as candidate 
for some utility static operation. Anyway, I'll keep the name as is, but will 
update the javadoc.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to