×

State initialization for continuous queries over archived views

  • US 9,805,095 B2
  • Filed: 09/25/2013
  • Issued: 10/31/2017
  • Est. Priority Date: 09/28/2012
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method, comprising:

  • receiving, by a computer system configured to execute computer-executable instructions, a continuous query, the continuous query identifying an archived view, the archived view identifying a join query between at least a first archived relation and a second archived relation associated with an application, the first archived relation comprising at least a first portion of historical data and incoming events related to an event stream of the application and the second archived relation comprising at least a second portion of the historical data and the incoming events related to the event stream;

    generating a query plan for the continuous query;

    identifying a view root operator in the archived view, the view root operator being identified as a join operator in the join query identified in the archived view;

    determining that a set of one or more operators in the query plan comprises one or more query operators, the one or more query operators being identified as stateful query operators of the query plan that maintain state information related to the application;

    identifying one or more of the stateful query operators in the query plan that topologically precede the view root operator;

    constructing a set of one or more archiver queries corresponding to the one or more stateful query operators that topologically precede the view root operator;

    combining the set of one or more archiver queries to generate a combined archiver query;

    executing the combined archiver query to obtain a result set of data records related to the application;

    converting the result set of data records into a list of tuples for each of the one or more stateful query operators by;

    determining a value of an ordering attribute in the combined archiver query, the value of the ordering attribute corresponding to a number of the one or more stateful query operators in the query plan; and

    constructing the list of tuples for each of the one or more stateful query operators based at least in part on the value of the ordering attribute;

    initializing a state of the one or more stateful query operators based at least in part on the list of tuples; and

    generating a snapshot output of one or more data values related to the application based at least in part on the state of the one or more stateful query operators.

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