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