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 class
FileCompactor.CompactionCanceledException
static interface
FileCompactor.CompactionEnv
-
Field Summary
Fields Modifier and Type Field Description protected KeyExtent
extent
protected static Set<FileCompactor>
runningCompactions
protected Thread
thread
-
Constructor Summary
Constructors Constructor Description FileCompactor(ServerContext context, KeyExtent extent, Map<StoredTabletFile,DataFileValue> files, TabletFile outputFile, boolean propagateDeletes, FileCompactor.CompactionEnv env, List<IteratorSetting> iterators, AccumuloConfiguration tableConfiguation, CryptoService cs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompactionStats
call()
long
getCompactorID()
String
getCurrentLocalityGroup()
KeyExtent
getExtent()
protected Map<String,Set<ByteSequence>>
getLocalityGroups(AccumuloConfiguration acuTableConf)
protected String
getOutputFile()
TCompactionReason
getReason()
static List<CompactionInfo>
getRunningCompactions()
VolumeManager
getVolumeManager()
-
-
-
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, TabletFile outputFile, boolean propagateDeletes, FileCompactor.CompactionEnv env, List<IteratorSetting> iterators, AccumuloConfiguration tableConfiguation, CryptoService cs)
-
-
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:
call
in interfaceCallable<CompactionStats>
- Throws:
IOException
FileCompactor.CompactionCanceledException
-
getReason
public TCompactionReason getReason()
-
-