@InterfaceAudience.Private public class DefaultCompactor extends Compactor<StoreFileWriter>
compact(CompactionRequestImpl, ThroughputController, User)Compactor.CellSinkFactory<S>, Compactor.FileDetails, Compactor.InternalScannerFactory| Modifier and Type | Field and Description | 
|---|---|
| private static org.slf4j.Logger | LOG | 
| private Compactor.CellSinkFactory<StoreFileWriter> | writerFactory | 
COMPACTION_PROGRESS_LOG_INTERVAL, compactionCompression, compactionKVMax, conf, defaultScannerFactory, keepSeqIdPeriod, MAJOR_COMPACTION_DROP_CACHE, MINOR_COMPACTION_DROP_CACHE, progress, store| Constructor and Description | 
|---|
| DefaultCompactor(org.apache.hadoop.conf.Configuration conf,
                HStore store) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | abortWriter(StoreFileWriter writer) | 
| protected List<org.apache.hadoop.fs.Path> | commitWriter(StoreFileWriter writer,
            Compactor.FileDetails fd,
            CompactionRequestImpl request) | 
| List<org.apache.hadoop.fs.Path> | compact(CompactionRequestImpl request,
       ThroughputController throughputController,
       User user)Do a minor/major compaction on an explicit set of storefiles from a Store. | 
| List<org.apache.hadoop.fs.Path> | compactForTesting(Collection<HStoreFile> filesToCompact,
                 boolean isMajor)Compact a list of files for testing. | 
compact, createScanner, createScanner, createTmpWriter, createTmpWriter, getProgress, performCompactionprivate static final org.slf4j.Logger LOG
private final Compactor.CellSinkFactory<StoreFileWriter> writerFactory
public DefaultCompactor(org.apache.hadoop.conf.Configuration conf, HStore store)
public List<org.apache.hadoop.fs.Path> compact(CompactionRequestImpl request, ThroughputController throughputController, User user) throws IOException
IOExceptionpublic List<org.apache.hadoop.fs.Path> compactForTesting(Collection<HStoreFile> filesToCompact, boolean isMajor) throws IOException
CompactionRequestImpl to pass to
 compact(CompactionRequestImpl, ThroughputController, User);filesToCompact - the files to compact. These are used as the compactionSelection for the
          generated CompactionRequestImpl.isMajor - true to major compact (prune all deletes, max versions, etc)IOExceptionprotected List<org.apache.hadoop.fs.Path> commitWriter(StoreFileWriter writer, Compactor.FileDetails fd, CompactionRequestImpl request) throws IOException
commitWriter in class Compactor<StoreFileWriter>IOExceptionprotected void abortWriter(StoreFileWriter writer) throws IOException
abortWriter in class Compactor<StoreFileWriter>IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.