only add non zeor values
This commit is contained in:
@@ -56,8 +56,10 @@ public class ScatterAggregator implements CustomAggregator {
|
|||||||
public void addValue(final long epochMilli, final long value) {
|
public void addValue(final long epochMilli, final long value) {
|
||||||
final long roundedEpochMilli = epochMilli - epochMilli % epochMillisPerPixel;
|
final long roundedEpochMilli = epochMilli - epochMilli % epochMillisPerPixel;
|
||||||
final long roundedValue = value - value % valuesPerPixel;
|
final long roundedValue = value - value % valuesPerPixel;
|
||||||
|
if (roundedEpochMilli > 0 && roundedValue >= 0) {
|
||||||
matrix2d.put(roundedEpochMilli, roundedValue, 1);
|
matrix2d.put(roundedEpochMilli, roundedValue, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AggregatedData getAggregatedData() {
|
public AggregatedData getAggregatedData() {
|
||||||
|
|||||||
Reference in New Issue
Block a user