AttributeRollingWindow 2.0.0

Bundle
org.apache.nifi | nifi-stateful-analysis-nar
Description
Track a Rolling Window based on evaluating an Expression Language expression on each FlowFile and add that value to the processor's state. Each FlowFile will be emitted with the count of FlowFiles and total aggregate value of values processed in the current time window.
Tags
Attribute Expression Language, data science, rolling, state, window
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
Properties
State Management
Scopes Description
LOCAL Store the values backing the rolling window. This includes storing the individual values and their time-stamps or the batches of values and their counts.
Relationships
Name Description
set state fail When state fails to save when processing a FlowFile, the FlowFile is routed here.
success All FlowFiles are successfully processed are routed here
failure When a FlowFile fails for a reason other than failing to set state it is routed here.
Writes Attributes
Name Description
rolling_window_value The rolling window value (sum of all the values stored).
rolling_window_count The count of the number of FlowFiles seen in the rolling window.
rolling_window_mean The mean of the FlowFiles seen in the rolling window.
rolling_window_variance The variance of the FlowFiles seen in the rolling window.
rolling_window_stddev The standard deviation (positive square root of the variance) of the FlowFiles seen in the rolling window.