def pickle_with_side_inputs(fn, tag_and_type=None): tags_and_types = [] args = [] if tag_and_type is not None: args.append(util.ArgumentPlaceholder()) tags_and_types.append(tag_and_type) return pickler.dumps( (fn, args, {}, tags_and_types, core.Windowing(window.GlobalWindows())))
def get_windowing(self, unused_inputs): return core.Windowing(window.GlobalWindows())