Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Dec 31, 2016

Removes AggregatorParsers, replacing all of its functionality with
XContentParser#namedObject.

This is the third bit of payoff from #22003, one less thing to pass
around the entire application.

@nik9000
Copy link
Member Author

nik9000 commented Dec 31, 2016

@imotov or @martijnvg or @javanna, could one of you have a look at this? Another namedObject side effect....

Copy link
Contributor

@s1monw s1monw left a comment

Choose a reason for hiding this comment

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

left one comment LGTM otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

can we maybe simplify this and just make PipelineAggregationBuilder a subclass of AggregationBuilder and remote that interface? that would be awesome

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm. I didn't look at that. I'll have a look! I'd love to not need the interface.

Removes `AggregatorParsers`, replacing all of its functionality with
`XContentParser#namedObject`.

This is the third bit of payoff from elastic#22003, one less thing to pass
around the entire application.
@nik9000
Copy link
Member Author

nik9000 commented Jan 9, 2017

@s1monw I had a look at making PipelineAggregationBuilder extends AggregationBuilder and it is possible but it'd be a mess. I found some other small cleanups I can make as a consolation prize. I'll get this rebased and in and open a PR for the consolation prize simplifications.

@nik9000 nik9000 force-pushed the named_xcontent_aggregations branch from 2b606c2 to 6c0f4c5 Compare January 9, 2017 18:59
@nik9000 nik9000 merged commit e3f77b4 into elastic:master Jan 9, 2017
@nik9000
Copy link
Member Author

nik9000 commented Jan 9, 2017

master: e3f77b4
5.x: c392895

nik9000 added a commit that referenced this pull request Jan 9, 2017
Removes `AggregatorParsers`, replacing all of its functionality with
`XContentParser#namedObject`.

This is the third bit of payoff from #22003, one less thing to pass
around the entire application.
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.

2 participants