blob: 40189ebc5644b4f20612b4c3b0368c553f65bc89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.logic.term;
import java.util.stream.Stream;
public interface Aggregator<R, T> {
Class<R> getResultType();
Class<T> getInputType();
R aggregateStream(Stream<T> stream);
R getEmptyResult();
}
|