Location and UseCase for AggregateItemReader

The app here contains a list of AggregateItemReader readers, but I cannot find it in any of the Spring Batch jar files. I am using Spring package with Spring boot and have version 3.0.7.

The Doc API points it in the sample package.

I am currently using JdbcPagingItemReader in my project, but I want the reader to return List or Collection objects for the processor instead of a single object. This is necessary so that I can process these objects in bulk one after another.

The pagination requirement is mandatory, so I use JdbcPagingItemReader

After reading the description, it looks like AggregateItemReader , but cannot find its implementation.

Any ideas? Are there any alternatives?

0
source share
1 answer

The org.springframework.batch.sample.domain.multiline package containing the AggregateItemReader class seems to be in the spring -batch-samples artifact; it should also be imported to your project separately from spring-batch-core. For instance. in maven pom.xml the following dependency resolves the issue

 <dependency> <groupId>org.springframework.batch</groupId> <artifactId>spring-batch-samples</artifactId> <version>3.0.0.M3</version> </dependency> 
+2
source

All Articles