Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Pre-processing

  1. #11

    Red face

    Quote Originally Posted by Dave Syer View Post
    You can get the itemCount from the StepExecution (e.g. in a listener) after the step has completed. It will only be accurate if there are no skipped records on read with the current meta-data, but that might be what you want anyway (how many records were processed)?
    Actually, i want to get the total number of records in the input file. Listener apporach would work, i think.

    I have 4 records in the input file, with no skippable items. However, i get output of 5 on using "stepExecution.getItemCount()". Why is that?

    Also, doc for getItemCount() is "Returns the current number of tasks for this execution". What do we mean by tasks here? Is it the total number of processed items or total number records going to the database?

  2. #12

    Default

    The off-by-one item count in step execution should be fixed in trunk. Item count is the number of items processed - I've tidied up the StepExecution javadoc a bit.
    Last edited by robert.kasanicky; Apr 16th, 2008 at 09:29 AM. Reason: spelling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •