Package io.github.zero88.jooqx
Interface JooqxResultCollector
- All Superinterfaces:
SQLResultCollector
Represents for a collector that collects then transform
Vert.x SQL result
to an expectation output- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R> JooqxBatchCollector<R>
default JooqxBlockCollector
collector
(@NotNull SQLResultAdapter<ROW, RESULT> adapter, @NotNull org.jooq.DSLContext dslContext, @NotNull DataTypeMapperRegistry registry) Create collector that helps transform result set to an expectation result that defines in SQL result adapterstatic JooqxResultCollector
create()
-
Method Details
-
create
-
collector
@NotNull <ROW,RESULT> @NotNull Collector<io.vertx.sqlclient.Row,List<ROW>, collectorRESULT> (@NotNull @NotNull SQLResultAdapter<ROW, RESULT> adapter, @NotNull @NotNull org.jooq.DSLContext dslContext, @NotNull @NotNull DataTypeMapperRegistry registry) Create collector that helps transform result set to an expectation result that defines in SQL result adapter- Type Parameters:
ROW
- Type of intermediate row, might be jOOQ record or custom typeRESULT
- Type of expectation result- Parameters:
adapter
- SQL result adapterdslContext
- dsl contextregistry
- data type mapper registry- Returns:
- the collector
-
batchCollector
-
blockCollector
-