@InterfaceAudience.Private public class DefaultMobStoreCompactor extends DefaultCompactor
Compactor.CellSinkFactory<S>, Compactor.FileDetails, Compactor.InternalScannerFactory| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ioOptimizedMode |
protected long |
mobSizeThreshold |
protected HMobStore |
mobStore |
COMPACTION_PROGRESS_LOG_INTERVAL, compactionKVMax, conf, defaultScannerFactory, dropCacheMajor, dropCacheMinor, keepSeqIdPeriod, MAJOR_COMPACTION_DROP_CACHE, majorCompactionCompression, MINOR_COMPACTION_DROP_CACHE, minorCompactionCompression, store| Constructor and Description |
|---|
DefaultMobStoreCompactor(org.apache.hadoop.conf.Configuration conf,
HStore store) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String |
getStoreInfo() |
protected boolean |
performCompaction(Compactor.FileDetails fd,
InternalScanner scanner,
CellSink writer,
long smallestReadPoint,
boolean cleanSeqId,
ThroughputController throughputController,
CompactionRequestImpl request,
CompactionProgress progress)
Performs compaction on a column family with the mob flag enabled.
|
abortWritercompact, createParams, createScanner, createScanner, createWriter, createWriter, getProgress, isCompactingprotected long mobSizeThreshold
protected HMobStore mobStore
protected boolean ioOptimizedMode
public DefaultMobStoreCompactor(org.apache.hadoop.conf.Configuration conf,
HStore store)
public List<org.apache.hadoop.fs.Path> compact(CompactionRequestImpl request, ThroughputController throughputController, User user) throws IOException
DefaultCompactorcompact in class DefaultCompactorIOExceptionprotected boolean performCompaction(Compactor.FileDetails fd, InternalScanner scanner, CellSink writer, long smallestReadPoint, boolean cleanSeqId, ThroughputController throughputController, CompactionRequestImpl request, CompactionProgress progress) throws IOException
performCompaction in class Compactor<StoreFileWriter>fd - File detailsscanner - Where to read from.writer - Where to write to.smallestReadPoint - Smallest read point.cleanSeqId - When true, remove seqId(used to be mvcc) value which is <=
smallestReadPointthroughputController - The compaction throughput controller.request - compaction request.progress - Progress reporter.IOExceptionprotected String getStoreInfo()
protected List<org.apache.hadoop.fs.Path> commitWriter(StoreFileWriter writer, Compactor.FileDetails fd, CompactionRequestImpl request) throws IOException
commitWriter in class DefaultCompactorIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.