/** * Defines time range for {@link CubeQuery}. * @param startTsInSec start time inclusive (epoch in seconds) * @param endTsInSec end time exclusive (epoch in seconds) * @return builder for configuring {@link CubeQuery} */ public GroupBy timeRange(long startTsInSec, long endTsInSec) { Builder.this.startTs = startTsInSec; Builder.this.endTs = endTsInSec; return new GroupBy(); } }