Class Compactor
- java.lang.Object
-
- org.apache.accumulo.tserver.tablet.Compactor
-
- All Implemented Interfaces:
Callable<CompactionStats>
- Direct Known Subclasses:
MinorCompactor
public class Compactor extends Object implements Callable<CompactionStats>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Compactor.CompactionCanceledException
static interface
Compactor.CompactionEnv
-
Constructor Summary
Constructors Constructor Description Compactor(ServerContext context, Tablet tablet, Map<FileRef,DataFileValue> files, InMemoryMap imm, FileRef outputFile, boolean propogateDeletes, Compactor.CompactionEnv env, List<IteratorSetting> iterators, int reason, AccumuloConfiguration tableConfiguation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompactionStats
call()
long
getCompactorID()
String
getCurrentLocalityGroup()
VolumeManager
getFileSystem()
protected Map<String,Set<ByteSequence>>
getLocalityGroups(AccumuloConfiguration acuTableConf)
static List<CompactionInfo>
getRunningCompactions()
-
-
-
Constructor Detail
-
Compactor
public Compactor(ServerContext context, Tablet tablet, Map<FileRef,DataFileValue> files, InMemoryMap imm, FileRef outputFile, boolean propogateDeletes, Compactor.CompactionEnv env, List<IteratorSetting> iterators, int reason, AccumuloConfiguration tableConfiguation)
-
-
Method Detail
-
getCompactorID
public long getCompactorID()
-
getCurrentLocalityGroup
public String getCurrentLocalityGroup()
-
getRunningCompactions
public static List<CompactionInfo> getRunningCompactions()
-
getFileSystem
public VolumeManager getFileSystem()
-
getLocalityGroups
protected Map<String,Set<ByteSequence>> getLocalityGroups(AccumuloConfiguration acuTableConf) throws IOException
- Throws:
IOException
-
call
public CompactionStats call() throws IOException, Compactor.CompactionCanceledException
- Specified by:
call
in interfaceCallable<CompactionStats>
- Throws:
IOException
Compactor.CompactionCanceledException
-
-