Class DefaultCompactor
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.Compactor<StoreFileWriter>
org.apache.hadoop.hbase.regionserver.compactions.DefaultCompactor
- Direct Known Subclasses:
DefaultMobStoreCompactor
Compact passed set of files. Create an instance and then call
compact(CompactionRequestImpl, ThroughputController, User)
-
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
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final Compactor.CellSinkFactory<StoreFileWriter>
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected final 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.Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
compact, createParams, createScanner, createScanner, createWriter, createWriter, getProgress, isCompacting, performCompaction
-
Field Details
-
LOG
-
writerFactory
-
-
Constructor Details
-
DefaultCompactor
-
-
Method Details
-
compact
public List<org.apache.hadoop.fs.Path> compact(CompactionRequestImpl request, ThroughputController throughputController, User user) throws IOException Do a minor/major compaction on an explicit set of storefiles from a Store.- Throws:
IOException
-
commitWriter
protected List<org.apache.hadoop.fs.Path> commitWriter(StoreFileWriter writer, Compactor.FileDetails fd, CompactionRequestImpl request) throws IOException - Specified by:
commitWriter
in classCompactor<StoreFileWriter>
- Throws:
IOException
-
abortWriter
- Specified by:
abortWriter
in classCompactor<StoreFileWriter>
- Throws:
IOException
-