Skip to content

Commit

Permalink
Import TimeUtils from the proper package
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek committed Jun 27, 2019
1 parent a0d487e commit ce13153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentParserUtils;
import org.elasticsearch.search.fetch.subphase.FetchSourceContext;
import org.elasticsearch.xpack.core.dataframe.utils.TimeUtils;
import org.elasticsearch.xpack.core.common.time.TimeUtils;
import org.elasticsearch.xpack.core.ml.dataframe.analyses.DataFrameAnalysis;
import org.elasticsearch.xpack.core.ml.job.messages.Messages;
import org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static void addProperties(Map<String, Object> mappingsAsMap) {
properties.put(DataFrameAnalyticsFields.ID, Map.of("type", "keyword"));
}

private static void addMetaData(Map<String, Object> mappingsAsMap, String analyticsId, Clock clock) {
private static voidaddMetaData(Map<String, Object> mappingsAsMap, String analyticsId, Clock clock) {
Map<String, Object> metadata = getOrPutDefault(mappingsAsMap, META, HashMap::new);
metadata.put(DataFrameAnalyticsFields.CREATION_DATE_MILLIS, clock.millis());
metadata.put(DataFrameAnalyticsFields.CREATED_BY, "data-frame-analytics");
Expand Down

0 comments on commit ce13153

Please sign in to comment.