org.apache.hadoop.hbase.regionserver.compactions
Class DefaultCompactor
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.Compactor
org.apache.hadoop.hbase.regionserver.compactions.DefaultCompactor
@InterfaceAudience.Private
public class DefaultCompactor
- extends Compactor
Compact passed set of files. Create an instance and then call
compact(CompactionRequest, CompactionThroughputController, User)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCompactor
public DefaultCompactor(org.apache.hadoop.conf.Configuration conf,
Store store)
compact
public List<org.apache.hadoop.fs.Path> compact(CompactionRequest request,
CompactionThroughputController throughputController,
User user)
throws IOException
- Do a minor/major compaction on an explicit set of storefiles from a Store.
- Throws:
IOException
compactForTesting
public List<org.apache.hadoop.fs.Path> compactForTesting(Collection<StoreFile> filesToCompact,
boolean isMajor)
throws IOException
- Compact a list of files for testing. Creates a fake
CompactionRequest
to pass to
compact(CompactionRequest, CompactionThroughputController, User)
;
- Parameters:
filesToCompact
- the files to compact. These are used as the compactionSelection for
the generated CompactionRequest
.isMajor
- true to major compact (prune all deletes, max versions, etc)
- Returns:
- Product of compaction or an empty list if all cells expired or deleted and nothing \
made it through the compaction.
- Throws:
IOException
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.