@InterfaceAudience.Private public class DefaultMobStoreCompactor extends org.apache.hadoop.hbase.regionserver.compactions.DefaultCompactor
org.apache.hadoop.hbase.regionserver.compactions.Compactor.CellSinkFactory<S>, org.apache.hadoop.hbase.regionserver.compactions.Compactor.FileDetails, org.apache.hadoop.hbase.regionserver.compactions.Compactor.InternalScannerFactory| Constructor and Description |
|---|
DefaultMobStoreCompactor(org.apache.hadoop.conf.Configuration conf,
HStore store) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.hadoop.fs.Path> |
compact(org.apache.hadoop.hbase.regionserver.compactions.CompactionRequestImpl request,
ThroughputController throughputController,
User user)
Do a minor/major compaction on an explicit set of storefiles from a Store.
|
protected boolean |
performCompaction(org.apache.hadoop.hbase.regionserver.compactions.Compactor.FileDetails fd,
InternalScanner scanner,
CellSink writer,
long smallestReadPoint,
boolean cleanSeqId,
ThroughputController throughputController,
boolean major,
int numofFilesToCompact)
Performs compaction on a column family with the mob flag enabled.
|
abortWriter, commitWriter, compactForTestingpublic DefaultMobStoreCompactor(org.apache.hadoop.conf.Configuration conf, HStore store)
public List<org.apache.hadoop.fs.Path> compact(org.apache.hadoop.hbase.regionserver.compactions.CompactionRequestImpl request, ThroughputController throughputController, User user) throws IOException
org.apache.hadoop.hbase.regionserver.compactions.DefaultCompactorcompact in class org.apache.hadoop.hbase.regionserver.compactions.DefaultCompactorIOExceptionprotected boolean performCompaction(org.apache.hadoop.hbase.regionserver.compactions.Compactor.FileDetails fd, InternalScanner scanner, CellSink writer, long smallestReadPoint, boolean cleanSeqId, ThroughputController throughputController, boolean major, int numofFilesToCompact) throws IOException
performCompaction in class org.apache.hadoop.hbase.regionserver.compactions.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.major - Is a major compaction.numofFilesToCompact - the number of files to compactIOExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.