Skip to content

Conversation

colings86
Copy link
Contributor

No description provided.

if (hasParams) {
out.writeMap(params);
}
}
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 use writeOptionalStreamable/readOptionalStreamable for serialization instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

implemented

@colings86 colings86 force-pushed the feature/aggs-refactoring branch from 783384b to 21556f9 Compare November 24, 2015 14:48

/**
* Script holds all the parameters necessary to compile or find in cache and then execute a script.
*/
public class Script implements ToXContent, Streamable {

public static final Supplier<Script> SUPPLIER = new Supplier<Script>() {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add javadocs that this is for usage in conjunction with StreamInput.readStreamable?

@jpountz
Copy link
Contributor

jpountz commented Nov 24, 2015

LGTM

@colings86 colings86 merged commit 510848f into elastic:feature/aggs-refactoring Nov 24, 2015
@colings86 colings86 deleted the refactor/scriptedMetricAgg branch November 24, 2015 16:44
@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