@Override
    public boolean equals(Object o) {

        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        TimePeriod that = (TimePeriod) o;

        if (operator != that.operator) {
            return false;
        }
        return durations != null ? durations.equals(that.durations) : that.durations == null;
    }
Time Period API. This defines all the time durations supported in Incremental Aggregation,
and the relevant operators
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/aggregation/TimePeriod.java