Package com.inductiveautomation.historian.gateway.api.query.pipeline


package com.inductiveautomation.historian.gateway.api.query.pipeline
The query pipeline's public surface: a caller runs a query through QueryPipeline, which resolves each source's engine through a QueryEngineRouter, streams each key's samples or engine rows as PipelineEvents, and hands assembled Rows to a RowSink.

An aggregate the gateway computes is an AggregateFunction: a fold that answers one whole window. It opens with the window's bounds, the sample in effect at the window start and the query's quality filter, sees the sample after the window when it needs one, and answers the window's edge values itself. The pipeline owns everything around the window: the grid, the watermarks that close windows, the quality ledgers that stamp a gated fold's cell, and the fill of a window the fold leaves without a cell.