@Override
        public Object processAdd(Object data) {
            Float value = (Float) data;
            if (minDeque != null) {
                for (Iterator<Float> iterator = minDeque.descendingIterator(); iterator.hasNext(); ) {
                    if (iterator.next() > value) {
                        iterator.remove();
                    } else {
                        break;
                    }
                }
                minDeque.addLast(value);
            }
            if (minValue == null || minValue > value) {
                minValue = value;
            }
            return minValue;
        }
The initialization method for FunctionExecutor

@param attributeExpressionExecutors are the executors of each attributes in the function
@param processingMode               query processing mode
@param outputExpectsExpiredEvents   is expired events sent as output
@param configReader                 this hold the {@link MinAttributeAggregatorExecutor} configuration reader.
@param siddhiQueryContext           Siddhi query runtime context
modules/siddhi-core/src/main/java/io/siddhi/core/query/selector/attribute/aggregator/MinAttributeAggregatorExecutor.java