- All Implemented Interfaces:
- Iterable<List<T>>
public class BatchIterator<T>
extends Object
implements Iterable<List<T>>
A convenience class for getting around the http://ora-01795.ora-code.com/ issue, which limits the size of the
in-clause parameters to 1000. Can be used to take a large collection of ids, and iterate over them in batches.
The default batch size using the single-argument constructor is 1000, but the constructor which takes two arguments
allows overriding the batch size to any positive integer.
- Author:
- Joseph Marques, John Sanda