86d5211c05
This removes a bunch of `instanceof`s in favor of two new methods on `InernalAggregation`. The default implementations of these methods just throw exceptions explaining that you can't sort on this aggregation. They are overridden by all of the classes that used to have `instanceof` checks against them. I doubt this is really any faster in practice. The real benefit here is that it is a little more obvious *that* you can sort by the results of an aggregation and it should be *much* more obvious where to look at *how* aggregations sort themselves. There are still a bunch more `instanceof`s in left in `AggregationPath` but those will wait for a followup change. |
||
---|---|---|
.. | ||
licenses | ||
src | ||
build.gradle |