public class

Aggregates

extends Object
java.lang.Object
   ↳ org.rrd4j.data.Aggregates

Class Overview

Simple class which holds aggregated values (MIN, MAX, FIRST, LAST, AVERAGE and TOTAL). You don't need to create objects of this class directly. Objects of this class are returned from getAggregates() method in FetchData and getAggregates(String) DataProcessor} classes.

Summary

Public Methods
String dump()
Returns String representing all aggregated values.
double getAggregate(ConsolFun consolFun)
Returns single aggregated value for the give consolidation function
double getAverage()
Returns average
double getFirst()
Returns the first falue
double getLast()
Returns the last value
double getMax()
Returns the maximum value
double getMin()
Returns the minimal value
double getTotal()
Returns total value
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String dump ()

Returns String representing all aggregated values. Just for debugging purposes.

Returns
  • String containing all aggregated values

public double getAggregate (ConsolFun consolFun)

Returns single aggregated value for the give consolidation function

Parameters
consolFun Consolidation function: MIN, MAX, FIRST, LAST, AVERAGE, TOTAL. These constanst are conveniently defined in the ConsolFun interface.
Returns
  • Aggregated value
Throws
IllegalArgumentException Thrown if unsupported consolidation function is supplied

public double getAverage ()

Returns average

Returns
  • Average value

public double getFirst ()

Returns the first falue

Returns
  • First value

public double getLast ()

Returns the last value

Returns
  • Last value

public double getMax ()

Returns the maximum value

Returns
  • Maximum value

public double getMin ()

Returns the minimal value

Returns
  • Minimal value

public double getTotal ()

Returns total value

Returns
  • Total value