Class AssignWindowsFunction<T>
java.lang.Object
org.apache.beam.runners.twister2.translators.functions.AssignWindowsFunction<T>
- All Implemented Interfaces:
edu.iu.dsc.tws.api.compute.modifiers.Closable
,edu.iu.dsc.tws.api.tset.fn.ComputeCollectorFunc<WindowedValue<T>,
,Iterator<WindowedValue<T>>> edu.iu.dsc.tws.api.tset.fn.TFunction<WindowedValue<T>,
,Iterator<WindowedValue<T>>> Serializable
public class AssignWindowsFunction<T>
extends Object
implements edu.iu.dsc.tws.api.tset.fn.ComputeCollectorFunc<WindowedValue<T>,Iterator<WindowedValue<T>>>
Assign Windows function.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAssignWindowsFunction
(WindowFn<T, BoundedWindow> windowFn, PipelineOptions options) -
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(Iterator<WindowedValue<T>> input, edu.iu.dsc.tws.api.tset.fn.RecordCollector<WindowedValue<T>> output) void
prepare
(edu.iu.dsc.tws.api.tset.TSetContext context) protected Object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.iu.dsc.tws.api.compute.modifiers.Closable
reset
Methods inherited from interface edu.iu.dsc.tws.api.tset.fn.TFunction
close
-
Constructor Details
-
AssignWindowsFunction
-
-
Method Details
-
compute
public void compute(Iterator<WindowedValue<T>> input, edu.iu.dsc.tws.api.tset.fn.RecordCollector<WindowedValue<T>> output) - Specified by:
compute
in interfaceedu.iu.dsc.tws.api.tset.fn.ComputeCollectorFunc<WindowedValue<T>,
Iterator<WindowedValue<T>>>
-
prepare
public void prepare(edu.iu.dsc.tws.api.tset.TSetContext context) - Specified by:
prepare
in interfaceedu.iu.dsc.tws.api.tset.fn.TFunction<WindowedValue<T>,
Iterator<WindowedValue<T>>>
-
readResolve
- Throws:
ObjectStreamException
-