Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public AggregatorImplementer(

this.init = requireStaticMethod(
declarationType,
// This should be more restrictive and require org.elasticsearch.compute.aggregation.AggregatorState
requirePrimitiveOrImplements(elements, Types.RELEASABLE),
requirePrimitiveOrImplements(elements, ClassName.get("org.elasticsearch.compute.aggregation", "AggregatorState")),
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 move those to the Types constants class? To follow what we do with other types.
Same with the GroupingAggregatorState one

Copy link
Member

Choose a reason for hiding this comment

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

👍

requireName("init", "initSingle"),
requireAnyArgs("<arbitrary init arguments>")
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ public GroupingAggregatorImplementer(

this.init = requireStaticMethod(
declarationType,
// This should be more restrictive and require org.elasticsearch.compute.aggregation.GroupingAggregatorState
requirePrimitiveOrImplements(elements, Types.RELEASABLE),
requirePrimitiveOrImplements(elements, ClassName.get("org.elasticsearch.compute.aggregation", "GroupingAggregatorState")),
requireName("init", "initGrouping"),
requireAnyArgs("<arbitrary init arguments>")
);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading