Package io.github.zero88.jooqx
Interface JooqxBatchCollector<R>
- Type Parameters:
R
- Type of each row in batch result
- All Superinterfaces:
SQLBatchCollector<io.vertx.sqlclient.SqlResult<List<R>>>
public interface JooqxBatchCollector<R>
extends SQLBatchCollector<io.vertx.sqlclient.SqlResult<List<R>>>
Represents for a collector that collects
Vert.x SQL batch result
to an expectation output- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
batchResultSize
(@NotNull io.vertx.sqlclient.SqlResult<List<R>> batchResult) Compute Batch Result sizedefault BatchReturningResult<R>
batchReturningResult
(@NotNull BindBatchValues bindValues, @NotNull io.vertx.sqlclient.SqlResult<List<R>> batchResult) Collect to batch returning resultstatic <R> JooqxBatchCollector<R>
create()
Reduce batch result into listMethods inherited from interface io.github.zero88.jooqx.SQLBatchCollector
batchResult
-
Method Details
-
create
-
batchResultSize
Description copied from interface:SQLBatchCollector
Compute Batch Result size- Specified by:
batchResultSize
in interfaceSQLBatchCollector<R>
- Parameters:
batchResult
- batch result- Returns:
- result size
-
batchReturningResult
default BatchReturningResult<R> batchReturningResult(@NotNull @NotNull BindBatchValues bindValues, @NotNull @NotNull io.vertx.sqlclient.SqlResult<List<R>> batchResult) Collect to batch returning result- Parameters:
bindValues
- the bind batch valuesbatchResult
- the batch result- Returns:
- batch returning result
- See Also:
-
BindBatchValues
BatchReturningResult
SqlResult
-
reduce
Reduce batch result into list- Parameters:
batchResult
- theVert.x
batch result- Returns:
- list result
- See Also:
-
SqlResult
-