All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.keen.client.java.result.IntervalResult Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package io.keen.client.java.result;

import java.util.Map;
import java.util.Collections;

import io.keen.client.java.AbsoluteTimeframe;

/**
 * 

IntervalResult is for if Interval properties were specified in the query. * If so, this object contains a Map that consist of

*
    *
  • AbsoluteTimeframe, which contains the timeframe as specified by the Interval
  • *
  • QueryResult, which is the result of the query as grouped by each timeframe
  • *
* * * @author claireyoung * @since 1.0.0, 07/06/15 */ public class IntervalResult extends QueryResult { private final Map results; /** * @param results the result map of AbsoluteTimeframes to the QueryResult. */ public IntervalResult(Map results) { this.results = Collections.unmodifiableMap(results); } /** * @return {@code true} */ @Override public boolean isIntervalResult() { return true; } /** * @return map of AbsoluteTimeframe to QueryResult objects */ @Override public Map getIntervalResults() { return results; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy