Class JpaBatchingQueryUtils.BatchRequestConfig
- Enclosing class:
- JpaBatchingQueryUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintThe maximum amount of results to return.The last ID (according to sort order) that was fetched in the previous batch.inthashCode()voidsetBatchSize(int batchSize) The maximum amount of results to return.voidsetPreviousBatchLastId(String previousBatchLastId) The last ID (according to sort order) that was fetched in the previous batch.toString()
-
Constructor Details
-
BatchRequestConfig
public BatchRequestConfig()
-
-
Method Details
-
getBatchSize
public int getBatchSize()The maximum amount of results to return. -
getPreviousBatchLastId
The last ID (according to sort order) that was fetched in the previous batch. The current batch should include this information in its query criteria to ensure it only fetches results sorted after this ID.
If this is the first batch being fetched, this value will be null.
See the Javadocs of
JpaBatchingQueryUtils.queryResultListInBatches(int, Function, Function)for more details. -
setBatchSize
public void setBatchSize(int batchSize) The maximum amount of results to return. -
setPreviousBatchLastId
The last ID (according to sort order) that was fetched in the previous batch. The current batch should include this information in its query criteria to ensure it only fetches results sorted after this ID.
If this is the first batch being fetched, this value will be null.
See the Javadocs of
JpaBatchingQueryUtils.queryResultListInBatches(int, Function, Function)for more details. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-