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)
Method Summary |
List<org.apache.hadoop.fs.Path> |
compact(CompactionRequest request)
Do a minor/major compaction on an explicit set of storefiles from a Store. |
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)
throws IOException
- Do a minor/major compaction on an explicit set of storefiles from a Store.
- Specified by:
compact
in class Compactor
- Parameters:
request
- the requested compaction
- Returns:
- Product of compaction or an empty list if all cells expired or deleted and nothing made
it through the compaction.
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.