Class SingleValueOrContextCollector<T>
- java.lang.Object
-
- org.kie.dmn.feel.runtime.decisiontables.SingleValueOrContextCollector<T>
-
public class SingleValueOrContextCollector<T> extends Object implements Collector<T,List<T>,Object>
Custom DT collector: it only 1 output, return the output itself. If more than 1 output, return a FEEL Context (hashmap) with name of the output and its value. From the specs: The output expression of a rule in a single output decision table is simply the rule's output entry. The output expression of a multiple output decision table is a context with entries composed from the output names and the rule's corresponding output entries.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Constructor Summary
Constructors Constructor Description SingleValueOrContextCollector(List<String> outputNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<List<T>,T>accumulator()Set<Collector.Characteristics>characteristics()BinaryOperator<List<T>>combiner()Function<List<T>,Object>finisher()Supplier<List<T>>supplier()
-