Class AbstractMultiOutputCompactor<T extends AbstractMultiFileWriter>
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.Compactor<T>
org.apache.hadoop.hbase.regionserver.compactions.AbstractMultiOutputCompactor<T>
- Direct Known Subclasses:
DateTieredCompactor
,StripeCompactor
@Private
public abstract class AbstractMultiOutputCompactor<T extends AbstractMultiFileWriter>
extends Compactor<T>
Base class for implementing a Compactor which will generate multiple output files after
compaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
Compactor.CellSinkFactory<S>, Compactor.FileDetails, Compactor.InternalScannerFactory
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
COMPACTION_PROGRESS_LOG_INTERVAL, compactionKVMax, compactScannerSizeLimit, conf, defaultScannerFactory, dropCacheMajor, dropCacheMinor, keepSeqIdPeriod, MAJOR_COMPACTION_DROP_CACHE, majorCompactionCompression, MINOR_COMPACTION_DROP_CACHE, minorCompactionCompression, store
-
Constructor Summary
ConstructorDescriptionAbstractMultiOutputCompactor
(org.apache.hadoop.conf.Configuration conf, HStore store) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
abortWriter
(AbstractMultiFileWriter writer) protected final void
initMultiWriter
(AbstractMultiFileWriter writer, InternalScanner scanner, Compactor.FileDetails fd, boolean shouldDropBehind, boolean major, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
commitWriter, compact, createParams, createScanner, createScanner, createWriter, createWriter, getProgress, isCompacting, performCompaction
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractMultiOutputCompactor
-
-
Method Details
-
initMultiWriter
protected final void initMultiWriter(AbstractMultiFileWriter writer, InternalScanner scanner, Compactor.FileDetails fd, boolean shouldDropBehind, boolean major, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) -
abortWriter
- Specified by:
abortWriter
in classCompactor<T extends AbstractMultiFileWriter>
- Throws:
IOException
-