Fix formatting in HoodieWriteClient
This commit is contained in:
committed by
vinoth chandar
parent
3bdd750982
commit
eb3d0c470f
@@ -57,7 +57,6 @@ import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.text.ParseException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
@@ -65,9 +64,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Collectors;
|
||||
import org.apache.hadoop.fs.FileStatus;
|
||||
import org.apache.hadoop.fs.FileSystem;
|
||||
import org.apache.hadoop.fs.Path;
|
||||
import org.apache.log4j.LogManager;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.spark.Partitioner;
|
||||
@@ -846,11 +843,8 @@ public class HoodieWriteClient<T extends HoodieRecordPayload> implements Seriali
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs a compaction operation on a dataset.
|
||||
* WARNING: Compaction operation cannot be executed asynchronously. Please always use this serially
|
||||
* before or after an insert/upsert action.
|
||||
* @param compactionCommitTime
|
||||
* @throws IOException
|
||||
* Performs a compaction operation on a dataset. WARNING: Compaction operation cannot be executed
|
||||
* asynchronously. Please always use this serially before or after an insert/upsert action.
|
||||
*/
|
||||
private void compact(String compactionCommitTime) throws IOException {
|
||||
// Create a Hoodie table which encapsulated the commits and files visible
|
||||
@@ -866,10 +860,8 @@ public class HoodieWriteClient<T extends HoodieRecordPayload> implements Seriali
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs a compaction operation on a dataset.
|
||||
* WARNING: Compaction operation cannot be executed asynchronously. Please always use this serially
|
||||
* before or after an insert/upsert action.
|
||||
* @throws IOException
|
||||
* Performs a compaction operation on a dataset. WARNING: Compaction operation cannot be executed
|
||||
* asynchronously. Please always use this serially before or after an insert/upsert action.
|
||||
*/
|
||||
public String forceCompact() throws IOException {
|
||||
String compactionCommitTime = HoodieActiveTimeline.createNewCommitTime();
|
||||
|
||||
Reference in New Issue
Block a user