Stream operator
First Claim
1. A method implemented at least in part by a computer, the method comprising:
- receiving a streaming event;
if the streaming event is a time only event, then performing a first set of actions, comprising;
determining a first set of stream operators that have indicated interest in receiving the time only event, andsending an indication of the time only event to each of the stream operators of the first set when the first set includes at least one stream operator;
if the streaming event is not a time only event, then performing a second set of actions, comprising;
determining a second set of stream operators that are to receive stream data corresponding to the streaming event, andsending the stream data to each of the stream operators of the second set when the second set includes at least one stream operator; and
if the streaming event is or is not a time only event, performing additional actions, comprising;
receiving output data from at least one of the stream operators to which the indication of the time only event or the stream data was sent, the at least one of the stream operators being configured to operate on the indication of the time only event or the stream data to generate the output data, andobtaining an indication from each stream operator to which the indication of the time only event or the stream data was sent whether the stream operator is now disposable.
2 Assignments
0 Petitions
Accused Products
Abstract
Aspects of the subject matter described herein relate to stream operators. In aspects, a stream event is received. Based on a timestamp associated with the stream event and the number of stream operators that have asked to be activated prior to or at the timestamp, zero or more stream objects are informed of one or more time events and torn down if no longer needed. In addition, a destination stream operator is instantiated, if needed, data (e.g., the timestamp and packet, if any) corresponding to the stream event is provided to a stream operator, output data, if any, is received from the stream operator, and the stream operator is torn down if it no longer needs state data between invocations.
21 Citations
20 Claims
-
1. A method implemented at least in part by a computer, the method comprising:
-
receiving a streaming event; if the streaming event is a time only event, then performing a first set of actions, comprising; determining a first set of stream operators that have indicated interest in receiving the time only event, and sending an indication of the time only event to each of the stream operators of the first set when the first set includes at least one stream operator; if the streaming event is not a time only event, then performing a second set of actions, comprising; determining a second set of stream operators that are to receive stream data corresponding to the streaming event, and sending the stream data to each of the stream operators of the second set when the second set includes at least one stream operator; and if the streaming event is or is not a time only event, performing additional actions, comprising; receiving output data from at least one of the stream operators to which the indication of the time only event or the stream data was sent, the at least one of the stream operators being configured to operate on the indication of the time only event or the stream data to generate the output data, and obtaining an indication from each stream operator to which the indication of the time only event or the stream data was sent whether the stream operator is now disposable. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. In a computing environment, a system, comprising:
-
an event receiver operable to receive stream data for a streaming event, the stream data including a timestamp with or without a payload of data; an operator selector operable to determine a stream operator to which to send the stream data, the stream operator being configured to operate on the stream data to generate output data; and an operator manager operable to instantiate the stream operator if needed, provide the stream data to the stream operator, receive the output data from the stream operator, and tear down the stream operator after the stream operator no longer needs to maintain state data. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. A computer storage memory having computer-executable instructions, which when executed perform actions, comprising:
-
receiving a streaming event; obtaining a timestamp of the streaming event; determining a stream operator to which to provide data corresponding to the streaming event, the stream operator being configured to operate on the data to generate output data; prior to providing the streaming event to the stream operator, performing a first set of actions, comprising; determining a set of stream operators that have requested activation at an activation timestamp at or before the timestamp, when the set includes at least one stream operator, activating each stream operator in the set and informing each stream operator in the set that the activation timestamp has occurred; and after the first set of actions has completed, performing a second set of actions using the stream operator. - View Dependent Claims (18, 19, 20)
-
Specification