|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rrd4j.data.Aggregates
public class Aggregates
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
DataProcessor.getAggregates(String)
DataProcessor classes.
Method Summary | |
---|---|
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 value |
double |
getLast()
Returns the last value |
double |
getMax()
Returns the maximum value |
double |
getMin()
Returns the minimal value |
double |
getTotal()
Returns total value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public double getMin()
public double getMax()
public double getFirst()
public double getLast()
public double getAverage()
public double getTotal()
public double getAggregate(ConsolFun consolFun)
consolFun
- Consolidation function: MIN, MAX, FIRST, LAST, AVERAGE, TOTAL. These constants
are conveniently defined in the ConsolFun
interface.
IllegalArgumentException
- Thrown if unsupported consolidation function is suppliedpublic String dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |