Ranking query processing method for stream data and stream data processing system having ranking query processing mechanism
First Claim
1. A ranking query processing method for stream data that receives stream data as a plurality of continually arriving stream tuples to which timestamps are attached and continually executes query processing on the stream data based on a pre-registered query, the method comprising:
- determining a lifetime, in a window, of each arriving stream tuple in response to arrival of the stream tuple, and determining an end of a lifetime, in the window, of each previously arrived stream tuple in addition thereto according to a window designation by the query;
generating window differential information indicating insertion of a stream tuple into the window and deletion of a stream tuple from the window at each time;
using the window differential information and archived information to compute a ranking, in the window, concerning an ordered target item between stream tuples that are within the window including stream tuples for which the ranking is outside of an output designation range designated by the query each time a lifetime of a stream tuple starts and each time a lifetime of a stream tuple ends according to ranking processing by the query, and updating a ranking information that indicates the ranking according to the computed ranking;
outputting a stream tuple set of stored stream tuples for which the raking is included in the output designation range designated by the query;
storing the updated ranking information of the stream tuples that are within the window and are present within a lifetime in the window for which the ranking is outside of the output designation range in a ranking information holding buffer that archives the ranking information; and
storing the stream tuples that are within the window and includes tuples for which the ranking is outside of the output designation range.
1 Assignment
0 Petitions
Accused Products
Abstract
A mechanism for managing ranking information using a sign of a stream tuple generated when stream data is inserted into, or deleted from, a window is provided. A mechanism for generating only the differential information of ranking calculation results, a mechanism for adding ranking information according to a request, an interface for generating and outputting all ranking information from the differential information, a mechanism for generating all ranking calculation results, and an interface for using these mechanisms are provided.
19 Citations
12 Claims
-
1. A ranking query processing method for stream data that receives stream data as a plurality of continually arriving stream tuples to which timestamps are attached and continually executes query processing on the stream data based on a pre-registered query, the method comprising:
-
determining a lifetime, in a window, of each arriving stream tuple in response to arrival of the stream tuple, and determining an end of a lifetime, in the window, of each previously arrived stream tuple in addition thereto according to a window designation by the query; generating window differential information indicating insertion of a stream tuple into the window and deletion of a stream tuple from the window at each time; using the window differential information and archived information to compute a ranking, in the window, concerning an ordered target item between stream tuples that are within the window including stream tuples for which the ranking is outside of an output designation range designated by the query each time a lifetime of a stream tuple starts and each time a lifetime of a stream tuple ends according to ranking processing by the query, and updating a ranking information that indicates the ranking according to the computed ranking; outputting a stream tuple set of stored stream tuples for which the raking is included in the output designation range designated by the query; storing the updated ranking information of the stream tuples that are within the window and are present within a lifetime in the window for which the ranking is outside of the output designation range in a ranking information holding buffer that archives the ranking information; and storing the stream tuples that are within the window and includes tuples for which the ranking is outside of the output designation range. - View Dependent Claims (2, 3, 4, 5, 6, 7, 11)
-
-
8. A non-transitory computer-usable storage medium having computer readable instructions stored thereon for execution by a processor to implement a stream data processing system that receives stream data as a plurality of continually arriving stream tuples to which timestamps are attached and continually executes query processing on the stream data based on a pre-registered query, the system comprising:
-
a window manager that executes a window calculation designated in the query for each arrived stream tuple and determines a lifetime in a window of each stream tuple; and a ranking processing module that performs ranking processing to compute a ranking between stream tuples in the window including stream tuples for which the ranking is outside of an output designation range designated in the query, outputs a stream tuple set of stored stream tuples for which the ranking is included in the output designation range designated by the query, and stores the stream tuples that are within the window and include tuples for which the ranking is outside of the output designation range, wherein the window manager includes; a differential information generator that generates window differential information indicating insertion of a stream tuple into the window and deletion of a stream tuple from the window at each time, and delivers the window differential information to the ranking processing module, and wherein the ranking processing module includes; a ranking generator that generates/updates ranking information in a range of stream tuples present in a lifetime in the window from the window differential information delivered by the differential information generator of the window manager and archived information; and a ranking information holding buffer that archives the ranking information updated by the ranking generator in the range of stream tuples present in the lifetime in the window. - View Dependent Claims (9, 10, 12)
-
Specification