Class NumberByLongAggregator
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.chart.AbstractNumberAggregator<Long,SumByLongAggregatorBucket>
-
- de.uplanet.lucy.server.auxiliaries.chart.NumberByLongAggregator
-
public final class NumberByLongAggregator extends AbstractNumberAggregator<Long,SumByLongAggregatorBucket>
This class can be used to aggregate numbers while grouping them by numerical values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NumberByLongAggregator.SortableSumByLongAggregatorBucketList
-
Constructor Summary
Constructors Constructor Description NumberByLongAggregator(Comparator<? super Long> p_comparator)
Create an aggregator for numerical values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Number p_num, String p_strRow, Number p_value, String p_strSingleId)
Add an observation.NumberByLongAggregator.SortableSumByLongAggregatorBucketList
getAggregatedValues()
Get an ascendingly ordered list of aggregated values.-
Methods inherited from class de.uplanet.lucy.server.auxiliaries.chart.AbstractNumberAggregator
getRowComparator, isGroupValueWasNull, isIgnoreIfGroupingValueIsNull, isIgnoreIfRowValueIsNull, isIgnoreIfValueIsNull, isMapNullValueToDefault, isRowValueWasNull, isValueWasNull, setCaseInsensitiveRowComparator, setCaseSensitiveRowComparator, setIgnoreIfGroupingValueIsNull, setIgnoreIfRowValueIsNull, setIgnoreIfValueIsNull, setMapNullValueToDefault, setRowComparator
-
-
-
-
Constructor Detail
-
NumberByLongAggregator
public NumberByLongAggregator(Comparator<? super Long> p_comparator)
Create an aggregator for numerical values.If a comparator is given "category" values for which this comparator returns a value of zero are considered equal.
- Parameters:
p_comparator
- A comparator forlong
values, ornull
.
-
-
Method Detail
-
getAggregatedValues
public NumberByLongAggregator.SortableSumByLongAggregatorBucketList getAggregatedValues()
Get an ascendingly ordered list of aggregated values.- Specified by:
getAggregatedValues
in classAbstractNumberAggregator<Long,SumByLongAggregatorBucket>
- Returns:
- The list of aggregated values.
-
add
public void add(Number p_num, String p_strRow, Number p_value, String p_strSingleId)
Add an observation.- Parameters:
p_num
- The numeric "category" value.p_strRow
- The row value.p_value
- The value.p_strSingleId
- A an identifier that is being stored as long as there is exactly one such identifier for a group (normally a record ID).
-
-