Class DateTieredCompactor
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.Compactor<T>
org.apache.hadoop.hbase.regionserver.compactions.AbstractMultiOutputCompactor<DateTieredMultiFileWriter>
org.apache.hadoop.hbase.regionserver.compactions.DateTieredCompactor
@Private
public class DateTieredCompactor
extends AbstractMultiOutputCompactor<DateTieredMultiFileWriter>
This compactor will generate StoreFile for different time ranges.
-
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
ConstructorDescriptionDateTieredCompactor
(org.apache.hadoop.conf.Configuration conf, HStore store) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.apache.hadoop.fs.Path>
commitWriter
(DateTieredMultiFileWriter writer, Compactor.FileDetails fd, CompactionRequestImpl request) List<org.apache.hadoop.fs.Path>
compact
(CompactionRequestImpl request, List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, ThroughputController throughputController, User user) private boolean
needEmptyFile
(CompactionRequestImpl request) Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.AbstractMultiOutputCompactor
abortWriter, initMultiWriter
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
compact, createParams, createScanner, createScanner, createWriter, createWriter, getProgress, isCompacting, performCompaction
-
Field Details
-
LOG
-
-
Constructor Details
-
DateTieredCompactor
-
-
Method Details
-
needEmptyFile
-
compact
public List<org.apache.hadoop.fs.Path> compact(CompactionRequestImpl request, List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, ThroughputController throughputController, User user) throws IOException- Throws:
IOException
-
commitWriter
protected List<org.apache.hadoop.fs.Path> commitWriter(DateTieredMultiFileWriter writer, Compactor.FileDetails fd, CompactionRequestImpl request) throws IOException - Specified by:
commitWriter
in classCompactor<DateTieredMultiFileWriter>
- Throws:
IOException
-