GIScience / GIScience/oshdb

Option to disable Zero-filling of aggregateBy

Open
#189 7 comments 1 reaction 1 assignee Claimed by @rtroilo View on GitHub
enhancement priority:low user experience
Dominant language
Java
Stars
131
Forks
19
PR merge metrics
No merged PRs in 30d

Description

**Problem**
The MapAggregator class provides zero-filled results. This may generate a lot of undesired "zero" data entries.

**Describe the solution you'd like**
Zero-filling should be optional or disableable by a flag. For example:

```java
mapaggregator.zerofill(false)
```

**Additional context**
When working with multiple `aggregateBy` steps, and/or relatively sparse datasets (e.g. aggregation by user ids), it's not uncommon that most entries in the zero-filled result are zero. In such cases, these zero entries are typically not of interest, and could in worst case be a significant waste of CPU time and memory.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.