Skip to content
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

Aggregations: Makes ValueFormat and ValueFormatter never null #11943

Merged
merged 1 commit into from Jul 1, 2015
Merged

Aggregations: Makes ValueFormat and ValueFormatter never null #11943

merged 1 commit into from Jul 1, 2015

Conversation

colings86
Copy link
Contributor

This allows a lot of null checks to be removed where we were always falling back to the ValueFormat.RAW anyway. Now the format is set to ValueFormat.RAW when no alternative is suitable.

Closes #10594

@@ -60,7 +60,8 @@

public HistogramAggregator(String name, AggregatorFactories factories, Rounding rounding, InternalOrder order,
boolean keyed, long minDocCount, @Nullable ExtendedBounds extendedBounds,
@Nullable ValuesSource.Numeric valuesSource, @Nullable ValueFormatter formatter,
@Nullable ValuesSource.Numeric valuesSource,
ValueFormatter formatter,
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation?

@jpountz
Copy link
Contributor

jpountz commented Jun 30, 2015

Wonderful! LGTM

This allows a lot of null checks to be removed where we were always falling back to the ValueFormat.RAW anyway. Now the format is set to ValueFormat.RAW when no alternative is suitable.

Closes #10594
@colings86 colings86 merged commit d73ce34 into elastic:master Jul 1, 2015
@kevinkluge kevinkluge removed the review label Jul 1, 2015
@colings86 colings86 deleted the enhancement/nonNullValueFormat branch July 1, 2015 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants