public abstract class AbstractCompactionTask extends Object implements Callable<CompactionTaskSummary>
doCompaction() implemented by subclass, and decrease the *
currentTaskNum in CompactionScheduler when the doCompaction() is *
finished. The future returns the CompactionTaskSummary of this task execution.| 限定符和类型 | 字段和说明 |
|---|---|
protected AtomicInteger |
currentTaskNum |
protected String |
fullStorageGroupName |
protected long |
timeCost |
protected long |
timePartition |
protected TsFileManager |
tsFileManager |
| 构造器和说明 |
|---|
AbstractCompactionTask(String fullStorageGroupName,
long timePartition,
TsFileManager tsFileManager,
AtomicInteger currentTaskNum) |
| 限定符和类型 | 方法和说明 |
|---|---|
CompactionTaskSummary |
call() |
abstract boolean |
checkValidAndSetMerging()
Check if the compaction task is valid (selected files are not merging, closed and exist).
|
protected abstract void |
doCompaction() |
boolean |
equals(Object other) |
abstract boolean |
equalsOtherTask(AbstractCompactionTask otherTask) |
String |
getFullStorageGroupName() |
long |
getTimeCost() |
long |
getTimePartition() |
abstract void |
resetCompactionCandidateStatusForAllSourceFiles() |
abstract void |
setSourceFilesToCompactionCandidate() |
protected String fullStorageGroupName
protected long timePartition
protected final AtomicInteger currentTaskNum
protected final TsFileManager tsFileManager
protected long timeCost
public AbstractCompactionTask(String fullStorageGroupName, long timePartition, TsFileManager tsFileManager, AtomicInteger currentTaskNum)
public abstract void setSourceFilesToCompactionCandidate()
public CompactionTaskSummary call() throws Exception
call 在接口中 Callable<CompactionTaskSummary>Exceptionpublic String getFullStorageGroupName()
public long getTimePartition()
public abstract boolean equalsOtherTask(AbstractCompactionTask otherTask)
public abstract boolean checkValidAndSetMerging()
public abstract void resetCompactionCandidateStatusForAllSourceFiles()
public long getTimeCost()
Copyright © 2022 The Apache Software Foundation. All rights reserved.