×

Support for a parameterized query/view in complex event processing

  • US 8,713,049 B2
  • Filed: 07/28/2011
  • Issued: 04/29/2014
  • Est. Priority Date: 09/17/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method of providing parameterized queries in complex event processing (CEP) environment, the method comprising:

  • providing a query template which includes one or more bind variables, wherein the one or more bind variables are typeless within the CEP environment;

    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 corresponding sets of parameters;

    inserting arbitrary predicates into the query template, based on the one or more bind variables being typeless;

    substituting the bound one or more bind variables with the corresponding sets of parameters;

    based on the sets of parameters, generating a single parameterized query which is a template that provides possible values for the bound one of more bind variables;

    determining a placeholder occurring in the single parameterized query for processing an event stream;

    based on the single parameterized query, generating multiple customized queries and views which differ by at least one variable, wherein the multiple customized queries and views are maintained by substituting the placeholder at runtime with parameters from the sets of parameters;

    instantiating a new query based on the query temple which includes the corresponding sets of parameters substituted for the one or more bind variables and injecting the new query into a CEP server;

    based on the new query, building a query execution plan;

    adding the query execution plan to a runtime environment as a continuous query; and

    executing the continuous query to process the event stream.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×