Stream Data Processing with Row Sliding Window Operators

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional stream data processing systems face challenges in real-time data processing due to delayed data arrival, leading to processing latency and inaccuracies when using arrival timestamps, as they struggle to immediately respond to rapid changes in data, such as stock prices, and cannot provide results based on data source timestamps without waiting for all data to arrive.

Innovation Solution

The implementation of a computer program that determines stream data interval definitions, generates an input interval check module to detect periodic data arrival, and configures a query execution module with range window operators, modifying them into row sliding or partition row sliding window operators to adjust the window size, allowing for processing based on arrival timestamps and reducing latency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the system waits for all data to arrive before processing based on data source timestamps, then measurement precision is improved, but loss of time increases

Engineering Contradiction:
Improveprocessing accuracyVSAvoidprocessing latency
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-calculating and storing interval information for multiple possible time intervals (e.g., 1 second, 3 seconds, 5 seconds) before data arrival. When data arrives, the system can immediately retrieve and apply the appropriate pre-calculated interval information without waiting for all data to arrive, thus reducing processing latency while maintaining accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system dynamically adapts to varying data arrival patterns by selecting different time intervals based on actual data characteristics. The interval selection is not fixed but adjusts according to the periodicity and timing of incoming data, allowing the system to optimize between processing speed and accuracy in real-time.

Inventive Principle:
Principle #15Dynamics

2Loss of time

If the system processes stream data immediately upon arrival using arrival timestamps, then loss of time is reduced, but measurement precision deteriorates

Engineering Contradiction:
Improveprocessing latencyVSAvoidprocessing accuracy
Core Design Contradiction:
Loss of timeVSMeasurement precision

Solution Approach 1:

The system introduces interval information as an intermediary element that bridges the gap between arrival timestamps and data source timestamps. This interval information acts as a mediator that allows the system to process data immediately upon arrival while still being able to reference the original data source timing information for accurate measurements.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Device complexity

If the system uses fixed time intervals for data processing, then device complexity is reduced, but adaptability deteriorates

Engineering Contradiction:
Improvesystem complexityVSAvoidinterval adaptation
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The system transitions from fixed time intervals to dynamic interval selection. Multiple interval configurations are prepared in advance, and the system dynamically selects the most appropriate interval based on the actual periodicity and timing characteristics of incoming stream data, achieving both simplicity and adaptability.

Inventive Principle:
Principle #15Dynamics

4Measurement precision

If the system stores all stream data until complete for processing, then measurement precision is improved, but volume of substance increases

Engineering Contradiction:
Improveprocessing accuracyVSAvoiddata storage volume
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The system performs preliminary calculations and stores only essential interval information rather than retaining all raw stream data. By pre-calculating interval metrics and storing them in a compressed format, the system reduces storage requirements while maintaining the ability to perform accurate processing when data arrives.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10331672B2Stream data processing method with time adjustment
Publication Date: 2019.06.25 HITACHI LTD
  • US10331672B2 patent drawing
  • US10331672B2 patent drawing
  • US10331672B2 patent drawing

AI summary

Some stream data (e.g., sensor streams) has characteristics in which data is periodically sent to a stream data processing server. When data arrives periodically, to hold a certain period is the same as to hold a certain amount. Example implementations described herein are directed to replacing the range window, which holds a period of stream data, with a row window which holds an amount of stream data. In the same manner, the example implementations replace the range rstream, which outputs results every period, with a row rstream which outputs results for every amount.