public static class HoodieDeltaStreamer.AsyncCompactService extends AbstractDeltaStreamerService
log| Constructor and Description |
|---|
AsyncCompactService(org.apache.spark.api.java.JavaSparkContext jssc,
HoodieWriteClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
enqueuePendingCompaction(HoodieInstant instant)
Enqueues new Pending compaction
|
protected Pair<CompletableFuture,ExecutorService> |
startService()
Start Compaction Service
|
void |
waitTillPendingCompactionsReducesTo(int numPendingCompactions)
Wait till outstanding pending compactions reduces to the passed in value
|
startpublic AsyncCompactService(org.apache.spark.api.java.JavaSparkContext jssc,
HoodieWriteClient client)
public void enqueuePendingCompaction(HoodieInstant instant)
public void waitTillPendingCompactionsReducesTo(int numPendingCompactions)
throws InterruptedException
numPendingCompactions - Maximum pending compactions allowedInterruptedExceptionprotected Pair<CompletableFuture,ExecutorService> startService()
startService in class AbstractDeltaStreamerServiceCopyright © 2019 The Apache Software Foundation. All rights reserved.