Uses of Class
org.springframework.batch.item.data.builder.MongoPagingItemReaderBuilder
Package
Description
Builders for Spring Data item readers and writers.
-
Uses of MongoPagingItemReaderBuilder in org.springframework.batch.item.data.builder
Modifier and TypeMethodDescriptionMongoPagingItemReaderBuilder.collection
(String collection) Establish an optional collection that can be queried.MongoPagingItemReaderBuilder.currentItemCount
(int currentItemCount) Index for the current item.JSON defining the fields to be returned from the matching documents by MongoDB.JSON String telling MongoDB what index to use.A JSON formatted MongoDB jsonQuery.MongoPagingItemReaderBuilder.maxItemCount
(int maxItemCount) Configure the max number of items to be read.The name used to calculate the key within theExecutionContext
.MongoPagingItemReaderBuilder.pageSize
(int pageSize) The number of items to be read with each page.MongoPagingItemReaderBuilder.parameterValues
(Object... parameterValues) Values to be substituted in for each of the parameters in the query.MongoPagingItemReaderBuilder.parameterValues
(List<Object> parameterValues) List
of values to be substituted in for each of the parameters in the query.MongoPagingItemReaderBuilder.query
(org.springframework.data.mongodb.core.query.Query query) Provide a Spring Data MongoQuery
.MongoPagingItemReaderBuilder.saveState
(boolean saveState) Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.MongoPagingItemReaderBuilder.sorts
(Map<String, org.springframework.data.domain.Sort.Direction> sorts) Map
of property names/Sort.Direction
values to sort the input by.MongoPagingItemReaderBuilder.targetType
(Class<? extends T> targetType) The type of object to be returned for eachAbstractItemCountingItemStreamItemReader.read()
call.MongoPagingItemReaderBuilder.template
(org.springframework.data.mongodb.core.MongoOperations template) Used to perform operations against the MongoDB instance.