Class FileCompactor
- java.lang.Object
-
- org.apache.accumulo.server.compaction.FileCompactor
-
- All Implemented Interfaces:
Callable<CompactionStats>
public class FileCompactor extends Object implements Callable<CompactionStats>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileCompactor.CompactionCanceledExceptionstatic interfaceFileCompactor.CompactionEnv
-
Field Summary
Fields Modifier and Type Field Description protected KeyExtentextentprotected static Set<FileCompactor>runningCompactionsprotected Threadthread
-
Constructor Summary
Constructors Constructor Description FileCompactor(ServerContext context, KeyExtent extent, Map<StoredTabletFile,DataFileValue> files, ReferencedTabletFile outputFile, boolean propagateDeletes, FileCompactor.CompactionEnv env, List<IteratorSetting> iterators, AccumuloConfiguration tableConfiguation, CryptoService cs, PausedCompactionMetrics metrics)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompactionStatscall()longgetCompactorID()StringgetCurrentLocalityGroup()KeyExtentgetExtent()protected Map<String,Set<ByteSequence>>getLocalityGroups(AccumuloConfiguration acuTableConf)protected StringgetOutputFile()TCompactionReasongetReason()static List<CompactionInfo>getRunningCompactions()VolumeManagergetVolumeManager()
-
-
-
Field Detail
-
extent
protected final KeyExtent extent
-
thread
protected volatile Thread thread
-
runningCompactions
protected static final Set<FileCompactor> runningCompactions
-
-
Constructor Detail
-
FileCompactor
public FileCompactor(ServerContext context, KeyExtent extent, Map<StoredTabletFile,DataFileValue> files, ReferencedTabletFile outputFile, boolean propagateDeletes, FileCompactor.CompactionEnv env, List<IteratorSetting> iterators, AccumuloConfiguration tableConfiguation, CryptoService cs, PausedCompactionMetrics metrics)
-
-
Method Detail
-
getCompactorID
public long getCompactorID()
-
getCurrentLocalityGroup
public String getCurrentLocalityGroup()
-
getRunningCompactions
public static List<CompactionInfo> getRunningCompactions()
-
getVolumeManager
public VolumeManager getVolumeManager()
-
getExtent
public KeyExtent getExtent()
-
getOutputFile
protected String getOutputFile()
-
getLocalityGroups
protected Map<String,Set<ByteSequence>> getLocalityGroups(AccumuloConfiguration acuTableConf) throws IOException
- Throws:
IOException
-
call
public CompactionStats call() throws IOException, FileCompactor.CompactionCanceledException
- Specified by:
callin interfaceCallable<CompactionStats>- Throws:
IOExceptionFileCompactor.CompactionCanceledException
-
getReason
public TCompactionReason getReason()
-
-