public abstract class MetaStoreCompactorThread extends CompactorThread implements MetaStoreThread
TxnStore
to access the internal database.Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected ScheduledExecutorService |
cycleUpdaterExecutorService |
protected MetadataCache |
metadataCache |
protected TxnStore |
txnHandler |
checkInterval, conf, hostName, LOG, runtimeVersion, stopMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
MetaStoreCompactorThread() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(AtomicBoolean stop) |
protected abstract boolean |
isCacheEnabled() |
protected org.apache.hadoop.hive.metastore.api.Partition |
resolvePartition(CompactionInfo ci)
Get the partition being compacted.
|
protected void |
startCycleUpdater(long updateInterval,
Runnable taskToRun) |
protected void |
stopCycleUpdater() |
protected static long |
updateCycleDurationMetric(String metric,
long startedAt) |
doPostLoopActions, getConf, getRuntimeVersion, initializeAndStartThread, replIsCompactionDisabledForTable, setConf, tableNameactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstartprotected TxnStore txnHandler
protected ScheduledExecutorService cycleUpdaterExecutorService
protected MetadataCache metadataCache
public void init(AtomicBoolean stop) throws Exception
init in interface MetaStoreThreadinit in class CompactorThreadExceptionprotected org.apache.hadoop.hive.metastore.api.Partition resolvePartition(CompactionInfo ci) throws org.apache.hadoop.hive.metastore.api.MetaException
CompactorThreadresolvePartition in class CompactorThreadci - compaction info returned from the compaction queueorg.apache.hadoop.hive.metastore.api.MetaException - if underlying calls throw, or if the partition name resolves to more than
one partition.protected abstract boolean isCacheEnabled()
protected void startCycleUpdater(long updateInterval,
Runnable taskToRun)
protected void stopCycleUpdater()
protected static long updateCycleDurationMetric(String metric, long startedAt)
Copyright © 2024 The Apache Software Foundation. All rights reserved.