public abstract class AsyncCompactService extends HoodieAsyncService
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPACT_POOL_NAME
This is the job pool used by async compaction.
|
protected HoodieEngineContext |
context |
| Constructor and Description |
|---|
AsyncCompactService(HoodieEngineContext context,
AbstractHoodieWriteClient client) |
AsyncCompactService(HoodieEngineContext context,
AbstractHoodieWriteClient client,
boolean runInDaemonMode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractCompactor |
createCompactor(AbstractHoodieWriteClient client) |
protected boolean |
shouldStopCompactor()
Check whether compactor thread needs to be stopped.
|
protected Pair<CompletableFuture,ExecutorService> |
startService()
Start Compaction Service.
|
void |
updateWriteClient(AbstractHoodieWriteClient writeClient) |
enqueuePendingAsyncServiceInstant, isRunInDaemonMode, isShutdown, isShutdownRequested, shutdown, start, waitForShutdown, waitTillPendingAsyncServiceInstantsReducesTopublic static final String COMPACT_POOL_NAME
protected transient HoodieEngineContext context
public AsyncCompactService(HoodieEngineContext context, AbstractHoodieWriteClient client)
public AsyncCompactService(HoodieEngineContext context, AbstractHoodieWriteClient client, boolean runInDaemonMode)
protected abstract AbstractCompactor createCompactor(AbstractHoodieWriteClient client)
protected Pair<CompletableFuture,ExecutorService> startService()
startService in class HoodieAsyncServiceprotected boolean shouldStopCompactor()
public void updateWriteClient(AbstractHoodieWriteClient writeClient)
Copyright © 2022 The Apache Software Foundation. All rights reserved.