×

Data flow windowing and triggering

  • US 10,732,928 B1
  • Filed: 06/08/2018
  • Issued: 08/04/2020
  • Est. Priority Date: 11/03/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receiving, at data processing hardware, data corresponding to one of streaming data or batch data;

    determining, by the data processing hardware, an event time of the data for slicing the data;

    grouping, by the data processing hardware, a first subset of the data into a first window, the first window defining a first sub-event time;

    aggregating, by the data processing hardware, a first aggregated result processed from the first subset of the data for the first window;

    determining, by the data processing hardware, a first trigger time to;

    emit the first aggregated result; and

    maintain the first aggregated result in a persistent state;

    when a next aggregated result of a second subset of the data associated with the first window emits after emitting the first aggregated result;

    emitting a retraction of the first aggregated result from the persistent state; and

    emitting a combined session result for the first window, the combined session result comprising a sum of the first aggregated result and the next aggregated result; and

    when the received data corresponds to streaming data;

    setting, by the data processing hardware, an input timestamp on an element of the streaming data;

    when the input timestamp on the element occurs earlier than a watermark, determining, by the data processing hardware, the streaming data comprises late streaming data; and

    one of;

    dropping the late streaming data;

    orallowing the late streaming data by creating a duplicate window in an output for the late streaming data.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×