def __init__(self, stream, rate, *, period=None, includePunctuations=None, precise=None, name=None): kind="spl.utility::Throttle" params = dict() params['rate'] = float64(rate) if period is not None: params['period'] = float64(period) if includePunctuations is not None: params['includePunctuations'] = includePunctuations if precise is not None: params['precise'] = precise super(_Throttle, self).__init__(kind,stream,params=params,name=name)
def __init__(self, topology, schema, *, period=None, iterations=None, delay=None, triggerCount=None, name=None): kind="spl.utility::Beacon" inputs=None schemas=schema params = dict() if period is not None: params['period'] = float64(period) if iterations is not None: params['iterations'] = uint32(iterations) if delay is not None: params['initDelay'] = float64(delay) if triggerCount is not None: params['triggerCount'] = triggerCount super(_Beacon, self).__init__(topology,kind,schemas,params,name)
def __init__(self, stream, delay, max_delayed=1000, name=None): topology = stream.topology kind="spl.utility::Delay" params = dict() params['delay'] = float64(delay) if max_delayed is not None: params['bufferSize'] = uint32(max_delayed) super(_Delay, self).__init__(kind,stream,params=params,name=name)
def __init__(self, stream, *, timeOut=None, count=None, deltaAttribute=None, delta=None, key=None, resetOnDuplicate=None, flushOnPunctuation=None, name=None): kind="spl.utility::DeDuplicate" params = dict() if timeOut is not None: params['timeOut'] = float64(timeOut) if count is not None: params['count'] = int(count) if deltaAttribute is not None: params['deltaAttribute'] = deltaAttribute if delta is not None: params['delta'] = delta if key is not None: params['key'] = key if resetOnDuplicate is not None: params['resetOnDuplicate'] = resetOnDuplicate if flushOnPunctuation is not None: params['flushOnPunctuation'] = flushOnPunctuation super(DeDuplicate, self).__init__(kind,stream,params=params,name=name)