takraj commented on PR #10102:
URL: https://github.com/apache/nifi/pull/10102#issuecomment-3106568937

   @exceptionfactory 
   
   > The Processor already writes fragment.count and fragment.index in this 
scenario, so simply comparing those values indicates the presence of the last 
FlowFile in a batch.
   
   This is true, except for the case, when `Output Batch Size` is set. In that 
case, `fragment.count` is not added, because we don't know in advance how many 
Flow Files will be created.
   
   Here is what the documentation says:
   
   > If 'Max Rows Per Flow File' is set then this is the total number of 
FlowFiles produced by a single ResultSet. This can be used in conjunction with 
the fragment.identifier attribute in order to know how many FlowFiles belonged 
to the same incoming ResultSet. If Output Batch Size is set, then this 
attribute will not be populated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to