×

Support for a parameterized query/view in complex event processing

  • US 9,110,945 B2
  • Filed: 11/12/2013
  • Issued: 08/18/2015
  • 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 one or more 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;

    determining that the sets of parameters correspond to the same bind variable;

    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;

    substituting the placeholder at runtime with parameter values corresponding to the sets of parameters;

    generating multiple customized queries and views which differ by at least only one variable based on the substituting;

    instantiating a new query for each of the sets of parameters which correspond to the same bind variable as a continuous query; and

    executing the continuous query to process the event stream.

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