Skip to content

Conversation

colings86
Copy link
Contributor

No description provided.


protected ValueFormatter formatter() {
if (format != null) {
return ValueFormat.Patternable.Number.format(format).formatter();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how often this is called, depending on this maybe it makes sense to store the formatter somewhere for later reuse unless format changes? Is only called a few times maybe not worth the trouble.

@cbuescher
Copy link
Member

Left a few small comments, would improve readability if readFrom/writeTo for the Models would be somehow symetric, but maybe that's hard to achieve with the current serialization infra. Otherwise looks good to me.

@jpountz
Copy link
Contributor

jpountz commented Dec 3, 2015

LGTM

@colings86 colings86 merged commit d149fae into elastic:feature/aggs-refactoring Dec 7, 2015
@colings86 colings86 deleted the refactor/MovAvgAgg branch December 7, 2015 11:00
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Search Refactoring labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants