Exemple #1
0
 def to_runner_api_parameter(self, context):
   return (urns.FIXED_WINDOWS_FN,
           standard_window_fns_pb2.FixedWindowsPayload(
               size=proto_utils.from_micros(
                   duration_pb2.Duration, self.size.micros),
               offset=proto_utils.from_micros(
                   timestamp_pb2.Timestamp, self.offset.micros)))
Exemple #2
0
 def to_runner_api_parameter(self, context):
   return (common_urns.fixed_windows.urn,
           standard_window_fns_pb2.FixedWindowsPayload(
               size=proto_utils.from_micros(
                   duration_pb2.Duration, self.size.micros),
               offset=proto_utils.from_micros(
                   timestamp_pb2.Timestamp, self.offset.micros)))
Exemple #3
0
 def to_runner_api_parameter(self, context):
   return (urns.SLIDING_WINDOWS_FN,
           standard_window_fns_pb2.SlidingWindowsPayload(
               size=proto_utils.from_micros(
                   duration_pb2.Duration, self.size.micros),
               offset=proto_utils.from_micros(
                   timestamp_pb2.Timestamp, self.offset.micros),
               period=proto_utils.from_micros(
                   duration_pb2.Duration, self.period.micros)))
Exemple #4
0
 def to_runner_api_parameter(self, context):
   return (urns.SLIDING_WINDOWS_FN,
           standard_window_fns_pb2.SlidingWindowsPayload(
               size=proto_utils.from_micros(
                   duration_pb2.Duration, self.size.micros),
               offset=proto_utils.from_micros(
                   timestamp_pb2.Timestamp, self.offset.micros),
               period=proto_utils.from_micros(
                   duration_pb2.Duration, self.period.micros)))
Exemple #5
0
 def to_runner_api_parameter(self, context):
   return (urns.SESSION_WINDOWS_FN,
           standard_window_fns_pb2.SessionsPayload(
               gap_size=proto_utils.from_micros(
                   duration_pb2.Duration, self.gap_size.micros)))
Exemple #6
0
 def to_runner_api_parameter(self, context):
   return (
       common_urns.session_windows.urn,
       standard_window_fns_pb2.SessionWindowsPayload(
           gap_size=proto_utils.from_micros(
               duration_pb2.Duration, self.gap_size.micros)))
Exemple #7
0
 def to_runner_api_parameter(self, context):
   return (common_urns.session_windows.urn,
           standard_window_fns_pb2.SessionsPayload(
               gap_size=proto_utils.from_micros(
                   duration_pb2.Duration, self.gap_size.micros)))
Exemple #8
0
 def to_runner_api_parameter(self, context):
   return (urns.SESSION_WINDOWS_FN,
           standard_window_fns_pb2.SessionsPayload(
               gap_size=proto_utils.from_micros(
                   duration_pb2.Duration, self.gap_size.micros)))