private boolean shouldUpdate(Object data, ValueState state) {
        long timestamp = (long) data;
        if (timestamp >= state.lastTimestamp) {
            state.lastTimestamp = timestamp;
            return true;
        }
        return false;
    }
This class implements logic to process aggregates(after retrieval from tables) that were aggregated
using external timestamp.
modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/OutOfOrderEventsDataAggregator.java