Class TimeSeriesAggregationQuery

    • Method Detail

      • range

        public TimeSeriesAggregationQuery range​(long from,
                                                long to)
        Description copied from class: TimeSeriesQuery
        Specifies a time range for the query
        Overrides:
        range in class TimeSeriesQuery
        Parameters:
        from - the beginning of the time range in ms (Epoch time)
        to - the end of the time range (Epoch time)
        Returns:
        the builder
      • window

        public TimeSeriesAggregationQuery window​(long resolution)
        Defines the desired resolution.
        If the desired resolution isn't a multiple of the source resolution it will floored to the closest valid resolution
        Parameters:
        resolution - the desired resolution in ms
        Returns:
        the builder
      • split

        public TimeSeriesAggregationQuery split​(long targetNumberOfBuckets)
        Specifies the desired number of buckets in the result. - For targetNumberOfBuckets = 1 the resulting number of buckets will be exactly 1 - For targetNumberOfBuckets > 1 the resulting number of buckets will be as close as possible to the specified target
        Parameters:
        targetNumberOfBuckets - the desired number of buckets in the result
        Returns:
        the builder
      • getGroupDimensions

        protected Set<String> getGroupDimensions()
      • getBucketIndexFrom

        protected Long getBucketIndexFrom()
      • getBucketIndexTo

        protected Long getBucketIndexTo()
      • drawAxis

        protected List<Long> drawAxis()
      • getProjectionFunction

        protected Function<Long,​Long> getProjectionFunction()
      • getBucketSize

        protected long getBucketSize()