|
Description
|
The following succeeds:
consumer.getAggregate(null, null); // include, cleared
because all aggregations are cleared by default. However, if the caller wants to clear some but not all aggregations, specifying the anonymous aggregation does not work (the caller gets a running total no matter what).
Set <String> cleared = new HashSet <String> ();
cleared.add(""); // unnamed
consumer.getAggregate(null, cleared); // fails to clear aggregation ""
If the aggregation has a name, the above code succeeds.
Specifying included aggregations has the same problem.
|