예제 #1
0
 def __init__(self, windowing):
   self.window_fn = windowing.windowfn
   self.output_time_fn_impl = OutputTimeFn.get_impl(windowing.output_time_fn,
                                                    self.window_fn)
   # pylint: disable=invalid-name
   self.WATERMARK_HOLD = WatermarkHoldStateTag('watermark',
                                               self.output_time_fn_impl)
   # pylint: enable=invalid-name
   self.trigger_fn = windowing.triggerfn
   self.accumulation_mode = windowing.accumulation_mode
   self.is_merging = True
예제 #2
0
 def __init__(self, windowing):
   self.window_fn = windowing.windowfn
   self.output_time_fn_impl = OutputTimeFn.get_impl(windowing.output_time_fn,
                                                    self.window_fn)
   # pylint: disable=invalid-name
   self.WATERMARK_HOLD = WatermarkHoldStateTag('watermark',
                                               self.output_time_fn_impl)
   # pylint: enable=invalid-name
   self.trigger_fn = windowing.triggerfn
   self.accumulation_mode = windowing.accumulation_mode
   self.is_merging = True