Package org.jdbi.v3.core.result
Interface BatchResultIterable<T>
-
- Type Parameters:
T-
- All Superinterfaces:
java.lang.Iterable<T>,ResultIterable<T>
public interface BatchResultIterable<T> extends ResultIterable<T>
Extend theResultIterablefor batch operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.result.ResultIterable
ResultIterable.ResultIteratorDelegate<T,R>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.util.List<T>>listPerBatch()Split the results into per-batch sub-lists.static <U> BatchResultIterable<U>of(ResultIterable<U> delegate, java.util.function.Supplier<int[]> modifiedRowCountsSupplier)-
Methods inherited from interface org.jdbi.v3.core.result.ResultIterable
collect, collectInto, collectInto, collectIntoList, collectIntoSet, collectToMap, filter, findFirst, findOne, findOnly, first, forEach, forEachWithCount, iterator, list, map, one, reduce, set, stream, toCollection, useIterator, useStream, withIterator, withStream
-
-
-
-
Method Detail
-
listPerBatch
java.util.List<java.util.List<T>> listPerBatch()
Split the results into per-batch sub-lists. Note that this may not be correct if any of the executed batches returned an error code.- Returns:
- results in a
ListofLists.
-
of
static <U> BatchResultIterable<U> of(ResultIterable<U> delegate, java.util.function.Supplier<int[]> modifiedRowCountsSupplier)
-
-