System and method for using stream objects to perform stream processing in a text-based computing environment
First Claim
Patent Images
1. A method comprising:
- providing, by a device, a definition of a data stream processing class,the definition of the data steam processing class identifying;
an output operation that produces an output value for an instance of the data stream processing class, andan update operation that updates a state of the instance of the data stream processing class,the output operation and the update operation being called using an Application Programming Interface (API) defined by the definition of the data steam processing class;
instantiating, by the device, the data stream processing class in a text-based computing environment to implement the API; and
processing, by the device, a data stream via the API,processing the data stream including;
using the instance of the data stream processing class to perform one or more of the output operation or the update operation on the data stream.
1 Assignment
0 Petitions
Accused Products
Abstract
A mechanism for using stream objects in stream processing operations is provided. A definition of a class of stream objects used in stream processing algorithms can define output and update operations included in instances of the stream objects and the API (application programming interface) through which they may be called. The class definition may further include the type of state information to be held by the instantiated stream objects. An instance of the stream object may be instantiated in a text-based computing environment and the operations may be used to process streams of data.
30 Citations
30 Claims
-
1. A method comprising:
-
providing, by a device, a definition of a data stream processing class, the definition of the data steam processing class identifying; an output operation that produces an output value for an instance of the data stream processing class, and an update operation that updates a state of the instance of the data stream processing class, the output operation and the update operation being called using an Application Programming Interface (API) defined by the definition of the data steam processing class; instantiating, by the device, the data stream processing class in a text-based computing environment to implement the API; and processing, by the device, a data stream via the API, processing the data stream including; using the instance of the data stream processing class to perform one or more of the output operation or the update operation on the data stream. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A device comprising:
-
a memory to store instructions; and one or more processors to execute the instructions to; generate a definition of a data stream processing class, the definition of the data stream processing class identifying a plurality of operations, the plurality of operations including; an output operation that produces a value for an instance of the data stream processing class, and an update operation that updates a state of the instance of the data stream processing class, the output operation and the update operation being called using an Application Programming Interface (API), the API being defined by the definition of the data stream processing class, instantiate the data stream processing class to implement the API, and process, using the instance of the data stream processing class and via the API, a data stream in a text-based computing environment or a graphical computing environment, when processing the data stream, the one or more processors are to; perform one or more of the output operation or the update operation on the data stream. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
-
-
19. The device of claim 18, where the value is calculated based on one or more parameters of the instance of the data stream processing class.
-
20. The device of claim 19, where, when processing the data stream, the one or more processors are to:
-
call, via the API and after the value is calculated, the update operation to update the state of the instance of the data stream processing class to obtain an updated state of the instance of the data stream processing class, and store the updated state of the instance of the data stream processing class.
-
-
21. The device of claim 11, where the plurality of operations further includes a particular operation that combines functionalities of the output operation and the update operation,
where, when processing the data stream, the one or more processors are to call the particular operation, and where, when calling the particular operation, the one or more processors are to call the output operation and the update operation.
-
22. A non-transitory computer-readable medium storing instructions, the instructions comprising:
-
a plurality of instructions which, when executed by one or more processors, cause the one or more processors to; generate a definition of a data stream processing class, the definition of the data stream processing class identifying a plurality of operations, the plurality of operations including; a first operation that produces a value for an instance of the data stream processing class, and a second operation that updates a state of the instance of the data stream processing class, the first operation and the second operation being called using an Application Programming Interface (API), the API being defined by the definition of the data stream processing class, instantiate the data stream processing class to implement the API, and process, using the instance of the data stream processing class and via the API, a data stream in a text-based computing environment or a graphical computing environment, one or more instructions, of the plurality of instructions, to process the data stream including; one or more instructions to perform one or more of the first operation or the second operation on the data stream. - View Dependent Claims (23, 24, 25, 26, 27, 28, 29, 30)
-
-
30. The non-transitory computer-readable medium of claim 22, where the plurality of operations flirther includes a third operation, and
where the one or more instructions to process the data stream further include one or more instructions to call the third operation, and where the one or more instructions to call the third operation include one or more instructions to call the first operation and the second operation based on calling the third operation.
Specification