Uses of Class
org.springframework.batch.item.data.builder.MongoItemReaderBuilder
Package
Description
Builders for Spring Data item readers and writers.
-
Uses of MongoItemReaderBuilder in org.springframework.batch.item.data.builder
Modifier and TypeMethodDescriptionMongoItemReaderBuilder.collection
(String collection) Establish an optional collection that can be queried.MongoItemReaderBuilder.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.MongoItemReaderBuilder.maxItemCount
(int maxItemCount) Configure the max number of items to be read.The name used to calculate the key within theExecutionContext
.MongoItemReaderBuilder.pageSize
(int pageSize) The number of items to be read with each page.MongoItemReaderBuilder.parameterValues
(Object... parameterValues) Values to be substituted in for each of the parameters in the query.MongoItemReaderBuilder.parameterValues
(List<Object> parameterValues) List
of values to be substituted in for each of the parameters in the query.MongoItemReaderBuilder.query
(org.springframework.data.mongodb.core.query.Query query) Provide a Spring Data MongoQuery
.MongoItemReaderBuilder.saveState
(boolean saveState) Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.Map
of property names/Sort.Direction
values to sort the input by.MongoItemReaderBuilder.targetType
(Class<? extends T> targetType) The type of object to be returned for eachAbstractItemCountingItemStreamItemReader.read()
call.MongoItemReaderBuilder.template
(org.springframework.data.mongodb.core.MongoOperations template) Used to perform operations against the MongoDB instance.