# Uses of Class
org.springframework.batch.item.data.builder.MongoItemReaderBuilder

Packages that use MongoItemReaderBuilder
Package
Description
org.springframework.batch.item.data.builder
Builders for Spring Data item readers and writers.

- ## Uses of MongoItemReaderBuilder in org.springframework.batch.item.data.builder

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