title: Spring Batch - How to have my JdbcCursorItemReader returning List (whole chunk) to ItemProcessor as i want to process records at same time
body: <p>I have developed a spring batch job which reads from database using JdbcCursorItemReader, process it and writes to kafka topic.
  The database table returns rows which has same Id as some columns have repeating values. So i have to group such rows and build a message in ItemProcessor class for single Id and repeating values column as arrayList in the message.</p>
  <p><a href="https://i.stack.imgur.com/0U833.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0U833.png" alt="enter image description here" /></a></p>
  <p>So i want to send the whole list of records read in ItemReader and process them to create a map based on Id and build message which will be written to kafka topic.</p>