Esempio n. 1
0
 def to_runner_api(self, context):
     # type: (PipelineContext) -> beam_runner_api_pb2.TimerFamilySpec
     return beam_runner_api_pb2.TimerFamilySpec(
         time_domain=TimeDomain.to_runner_api(self.time_domain),
         timer_family_coder_id=context.coders.get_id(
             coders._TimerCoder(coders.StrUtf8Coder(),
                                coders.GlobalWindowCoder())))
Esempio n. 2
0
 def to_runner_api(self, context):
     # type: (PipelineContext) -> beam_runner_api_pb2.TimerSpec
     return beam_runner_api_pb2.TimerSpec(
         time_domain=TimeDomain.to_runner_api(self.time_domain),
         timer_coder_id=context.coders.get_id(
             coders._TimerCoder(coders.SingletonCoder(None))))
Esempio n. 3
0
 def to_runner_api(self, context, key_coder, window_coder):
     return beam_runner_api_pb2.TimerFamilySpec(
         time_domain=TimeDomain.to_runner_api(self.time_domain),
         timer_family_coder_id=context.coders.get_id(
             coders._TimerCoder(key_coder, window_coder)))
Esempio n. 4
0
 def to_runner_api(self, context):
   return beam_runner_api_pb2.TimerSpec(
       time_domain=TimeDomain.to_runner_api(self.time_domain))
Esempio n. 5
0
 def to_runner_api(self, context):
     return beam_runner_api_pb2.TimerFamilySpec(
         time_domain=TimeDomain.to_runner_api(self.time_domain),
         timer_family_coder_id=context.coders.get_id(
             coders._TimerCoder(coders.SingletonCoder(None))))
Esempio n. 6
0
 def to_runner_api(self, context):
     return beam_runner_api_pb2.TimerSpec(
         time_domain=TimeDomain.to_runner_api(self.time_domain))
Esempio n. 7
0
 def to_runner_api(self, context):
   return beam_runner_api_pb2.TimerSpec(
       time_domain=TimeDomain.to_runner_api(self.time_domain),
       timer_coder_id=context.coders.get_id(
           coders._TimerCoder(coders.SingletonCoder(None))))