public static class IncrementalLearningSkeleton.PartialModelBuilder extends Object implements AllWindowFunction<Integer,Double[],TimeWindow>
Constructor and Description |
---|
PartialModelBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
apply(TimeWindow window,
Iterable<Integer> values,
Collector<Double[]> out)
Evaluates the window and outputs none or several elements.
|
protected Double[] |
buildPartialModel(Iterable<Integer> values) |
public void apply(TimeWindow window, Iterable<Integer> values, Collector<Double[]> out) throws Exception
AllWindowFunction
apply
in interface AllWindowFunction<Integer,Double[],TimeWindow>
window
- The window that is being evaluated.values
- The elements in the window being evaluated.out
- A collector for emitting elements.Exception
- The function may throw exceptions to fail the program and trigger recovery.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.