blob: 0684a9d9822e62d4ab7cb3eaf208ac52314ee018 (
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.store.query.term;
import java.util.stream.Stream;
public interface Aggregator<R, T> {
Class<R> getResultType();
Class<T> getInputType();
R aggregateStream(Stream<T> stream);
R getEmptyResult();
}
|