ing-bank / scruid

Scala + Druid: Scruid. A library that allows you to compose queries in Scala, and parse the result back into typesafe classes.
Apache License 2.0
115 stars 29 forks source link

Implement (single field) aggregation types #3

Closed bjgbeelen closed 6 years ago

bjgbeelen commented 6 years ago

I think we can benefit from introducing more types reflecting the Druid API.

This first PR implements the different types of Aggregations that are available instead of excepting any String.

I restructured the Aggregation setup a bit, so that we can more easily add other allowed but more complex types in the future.

Fokko commented 6 years ago

LGTM