Skip to content

Conversation

@dimitris-athanasiou
Copy link
Contributor

No description provided.

@dimitris-athanasiou dimitris-athanasiou added the :ml Machine learning label Nov 26, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

builder.startObject();
builder.field(NAME.getPreferredName(), name);
builder.endObject();
return null;

Choose a reason for hiding this comment

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

return builder I guess?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oups! Indeed!

try (OutputStreamWriter osw = new OutputStreamWriter(Files.newOutputStream(configFile),StandardCharsets.UTF_8);
XContentBuilder jsonBuilder = JsonXContent.contentBuilder()) {

config.toXContent(jsonBuilder, Payload.XContent.EMPTY_PARAMS);

Choose a reason for hiding this comment

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

ToXContent.EMPTY_PARAMS removes the strange dep to watcher

builder.field(THREADS, threads);
builder.field(ANALYSIS, analysis);
builder.endObject();
return null;

Choose a reason for hiding this comment

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

return builder?

Copy link

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@dimitris-athanasiou dimitris-athanasiou merged commit 3f49eef into elastic:feature-ml-data-frame-analytics Nov 27, 2018
@dimitris-athanasiou dimitris-athanasiou deleted the write-data-frame-configuration-to-process branch November 27, 2018 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants