×

Processing events for continuous queries on archived relations

  • US 9,990,401 B2
  • Filed: 03/14/2013
  • Issued: 06/05/2018
  • Est. Priority Date: 09/28/2012
  • Status: Active Grant
First Claim
Patent Images

1. A system, comprising:

  • a memory storing a plurality of instructions; and

    one or more processors configured to access the memory, wherein the one or more processors are further configured to execute the plurality of instructions to at least;

    identify, by a query engine, that a continuous query is to be utilized for processing data of an archived relation that comprises a bounded data set of historical event data corresponding to a stream of business event data, the archived relation comprising a startup state;

    identify, from a data definition language statement, annotations about the archived relation;

    create the continuous query based at least in part on the annotations;

    generate a data structure for a query operator graph that represents the continuous query, the data structure comprising nodes that represent each operator of the continuous query;

    traverse, by the query engine, the data structure topologically from a source of the query operator graph;

    identify, by the query engine, a particular stateful operator of the data structure that is a lowest stateful operator reached while traversing the data structure;

    register a listening service with the stream of business event data prior to creating the archived relation;

    receive, from a user, a window size for configuring the archived relation;

    create, using the query engine, the archived relation to include the bounded data set of historical event data upon creation, the archived relation being non-empty at its creation, the creation of the archived relation comprising;

    applying a window that corresponds to the window size on the stream of business event data; and

    evaluating a snapshot query against the historical event data associated with the stream of business event data, the evaluation of the snapshot query comprising;

    executing a structure query language (SQL) query to collect historical data;

    receiving the historical data, via the SQL query, corresponding to the particular stateful operator of the data structure that was identified as the lowest stateful operator reached while traversing the data structure; and

    initializing the continuous query with the historical data corresponding to the lowest stateful operator reached while traversing the data structure; and

    evaluate the continuous query with respect to the archived relation after completion of the evaluation of the snapshot query against the historical data associated with the stream of business event data.

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