New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate Aggregator.getName and AggregatorFactory.getAggregatorStartValue. #3572
Conversation
e44d06c
to
0ff1988
Compare
* Returns the starting value for a corresponding aggregator. For example, 0 for sums, - Infinity for max, an empty mogrifier | ||
* | ||
* @return the starting value for a corresponding aggregator. | ||
* Deprecated, to be removed in 0.10.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add something like "see /pull/3572 for details"?
@@ -37,7 +37,7 @@ | |||
void reset(); | |||
Object get(); | |||
float getFloat(); | |||
String getName(); | |||
@Deprecated String getName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add something like "see /pull/3572 for details"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍, Lets also open an issue for 0.10.0 to remove deprecated methods.
0ff1988
to
7411985
Compare
@leventov @nishantmonu51 I raised #3588 and mentioned it in the javadocs for the deprecated methods. |
43365a8
to
445bf09
Compare
rebased against master, although tests cannot pass until #3624 is merged. |
445bf09
to
b6b93e4
Compare
rebased against master again. |
👍 |
Partial rework of #3387, plus deprecating AggregatorFactory.getAggregatorStartValue too. Neither was really used for much. This deprecates rather than removes the functions, to prevent errors for people that have implemented custom aggregators.
From the original PR, this can also help quite a bit with memory use of OnheapIncrementalIndex when there are a large number of aggregators. #3387 (comment)