Skip to content

Conversation

colings86
Copy link
Contributor

No description provided.


CardinalityAggregatorFactory(String name, ValuesSourceParser.Input<ValuesSource> input, long precisionThreshold) {
super(name, InternalCardinality.TYPE, input);
private long precisionThreshold = -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

don't other factories use null to represent "unset"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!


@Override
protected void innerWriteTo(StreamOutput out) throws IOException {
out.writeLong(precisionThreshold);
Copy link
Contributor

Choose a reason for hiding this comment

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

should we handle the null case?

@colings86 colings86 force-pushed the feature/aggs-refactoring branch 4 times, most recently from 783384b to 21556f9 Compare November 24, 2015 14:48
@jpountz
Copy link
Contributor

jpountz commented Nov 24, 2015

LGTM

@colings86 colings86 merged commit 3037870 into elastic:feature/aggs-refactoring Nov 24, 2015
@colings86 colings86 deleted the refactor/cardinalityAgg branch November 24, 2015 17: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.

3 participants