SUPPORT FOR A PARAMETERIZED QUERY/VIEW IN COMPLEX EVENT PROCESSING
First Claim
1. A method of providing parameterized queries in complex event processing (CEP), the method comprising:
- providing a query template which includes one or more bind variables;
providing sets of parameters corresponding to the one or more bind variables;
parsing the query template to determine positions of the one or more bind variables;
scanning the provided sets of parameters to determine which of the sets of parameters are to be bound to the one or more bind variables;
binding the one or more bind variables which are determined to be bound to the sets of parameters; and
substituting the bound one or more bind variables with the corresponding sets of parameters.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention includes a method for providing parameterized queries in complex event processing (CEP). The method includes providing a query template which includes one or more bind variables, providing sets of parameters corresponding to the one or more bind variables, and parsing the query template to determine positions of the one or more bind variables. The method further includes scanning the provided sets of parameters to determine which of the sets of parameters are to be bound to the one or more bind variables, binding the one or more bind variables which are determined to be bound to the sets of parameters, and substituting the bound one or more bind variables with the corresponding sets of parameters. The method further includes injecting all incarnations of the parameterized queries into the system, and one template/parameterized query is configured to run them all.
-
Citations
20 Claims
-
1. A method of providing parameterized queries in complex event processing (CEP), the method comprising:
-
providing a query template which includes one or more bind variables; providing sets of parameters corresponding to the one or more bind variables; parsing the query template to determine positions of the one or more bind variables; scanning the provided sets of parameters to determine which of the sets of parameters are to be bound to the one or more bind variables; binding the one or more bind variables which are determined to be bound to the sets of parameters; and substituting the bound one or more bind variables with the corresponding sets of parameters. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system for providing parameterized queries in complex event processing (CEP), the system comprising:
-
a memory; and a processor coupled with the memory, wherein the memory has sets of instructions stored thereon which, when executed by the processor, cause the processor to; determine a placeholder occurring in a parameterized query for processing an event stream; determine a parameter for the placeholder; and generate a query from the parameterized query by substituting the placeholder with the parameter. - View Dependent Claims (13, 14)
-
-
15. A computer-readable medium having sets of instructions stored thereon which, when executed by a computer, cause the computer to:
-
provide a query template which includes one or more bind variables; provide sets of parameters corresponding to the one or more bind variables; parse the query template to determine positions of the one or more bind variables; scan the provided sets of parameters to determine which of the sets of parameters are to be bound to the one or more bind variables; bind the one or more bind variables which are determined to be bound to the sets of parameters; and substitute the bound one or more bind variables with the corresponding sets of parameters. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification