bvaradar commented on a change in pull request #600: Timeline Service with Incremental View Syncing support URL: https://github.com/apache/incubator-hudi/pull/600#discussion_r276898682
########## File path: hoodie-common/src/main/java/com/uber/hoodie/common/table/timeline/request/CompactionOpDTO.java ########## @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018 Uber Technologies, Inc. ([email protected]) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.uber.hoodie.common.table.timeline.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.uber.hoodie.common.model.CompactionOperation; +import com.uber.hoodie.common.util.Option; +import com.uber.hoodie.common.util.collection.Pair; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class CompactionOpDTO { + + @JsonProperty("baseInstant") + String baseInstantTime; + + @JsonProperty("compactionInstant") + String compactionInstantTime; + + @JsonProperty("dataFileInstant") + private String dataFileCommitTime; + + @JsonProperty("deltaFiles") + private List<String> deltaFilePaths; + + @JsonProperty("baseFile") + private String dataFilePath; + + @JsonProperty("id") + private String fileId; + + @JsonProperty("partition") + private String partitionPath; + + @JsonProperty("metrics") + private Map<String, Double> metrics; + + public static CompactionOpDTO fromCompactionOperation(String compactionInstantTime, Review comment: The idea was that we can use curl to query and debug results ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
