public abstract class AsyncCompactService extends HoodieAsyncTableService
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPACT_POOL_NAME
This is the job pool used by async compaction.
|
protected HoodieEngineContext |
context |
writeConfighasError| Constructor and Description |
|---|
AsyncCompactService(HoodieEngineContext context,
BaseHoodieWriteClient client) |
AsyncCompactService(HoodieEngineContext context,
BaseHoodieWriteClient client,
boolean runInDaemonMode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BaseCompactor |
createCompactor(BaseHoodieWriteClient client) |
protected boolean |
shouldStopCompactor()
Check whether compactor thread needs to be stopped.
|
protected Pair<CompletableFuture,ExecutorService> |
startService()
Start Compaction Service.
|
void |
updateWriteClient(BaseHoodieWriteClient writeClient) |
startenqueuePendingAsyncServiceInstant, hasError, isRunInDaemonMode, isShutdown, isShutdownRequested, isStarted, shutdown, waitForShutdown, waitTillPendingAsyncServiceInstantsReducesToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldDelegateToTableServiceManager, tableServicesEnabledpublic static final String COMPACT_POOL_NAME
protected transient HoodieEngineContext context
public AsyncCompactService(HoodieEngineContext context, BaseHoodieWriteClient client)
public AsyncCompactService(HoodieEngineContext context, BaseHoodieWriteClient client, boolean runInDaemonMode)
protected abstract BaseCompactor createCompactor(BaseHoodieWriteClient client)
protected Pair<CompletableFuture,ExecutorService> startService()
startService in class HoodieAsyncServiceprotected boolean shouldStopCompactor()
public void updateWriteClient(BaseHoodieWriteClient writeClient)
Copyright © 2024 The Apache Software Foundation. All rights reserved.