Records#intoArray(Object[]) and similar collectors require an eager
specification of the resulting array type. In some cases, this array type
cannot be known until a query is executed (e.g in the case of a plain SQL
ResultQuery). In that case, we rely
ResultQuery#collect(Collector) to inject a Fields
implementation prior to running a collection.
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private final Collector | |
| pack-priv Fields |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final BiConsumer | accumulator()
Implements java. |
| public final Set | characteristics()
Implements java. Set of Collector.Characteristics indicating
the characteristics of this Collector.
|
| public final BinaryOperator | combiner()
Implements java. |
| public final Function | finisher()
Implements java. A to the final result type R.
|
| pack-priv static final <F extends Fields> F | |
| public final Supplier | supplier()
Implements java. |
| array | back to summary |
|---|---|
| private final Function<Fields, E[]> array | |
| delegate | back to summary |
|---|---|
| private final Collector<R, List<E>, List<E>> delegate | |
| fields | back to summary |
|---|---|
| pack-priv Fields fields | |
| DelayedArrayCollector | back to summary |
|---|---|
pack-priv DelayedArrayCollector(Function<Fields, E[]> array, Function<R, E> mapper)
| |
| accumulator | back to summary |
|---|---|
| public final BiConsumer Implements java. Doc from java. A function that folds a value into a mutable result container.
| |
| characteristics | back to summary |
|---|---|
| public final Set Implements java. Doc from java. Returns a
| |
| combiner | back to summary |
|---|---|
| public final BinaryOperator Implements java. Doc from java. A function that accepts two partial results and merges them. The combiner function may fold state from one argument into the other and return that, or may return a new result container.
| |
| finisher | back to summary |
|---|---|
| public final Function Implements java. Doc from java. Perform the final transformation from the intermediate accumulation type
If the characteristic | |
| patch | back to summary |
|---|---|
| pack-priv static final <F extends Fields> F patch(Collector<?, ?, ?> collector, F fields) | |
| supplier | back to summary |
|---|---|
| public final Supplier Implements java. Doc from java. A function that creates and returns a new mutable result container. | |