org.apache.hadoop.hbase.regionserver.compactions
Class DefaultCompactor

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.Compactor
      extended by 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)


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
Compactor.CellSink, Compactor.FileDetails
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
compactionCompression, conf, progress, store
 
Constructor Summary
DefaultCompactor(org.apache.hadoop.conf.Configuration conf, Store store)
           
 
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 org.apache.hadoop.hbase.regionserver.compactions.Compactor
abortWriter, compactForTesting, createFileScanners, createScanner, getFileDetails, getProgress, performCompaction, postCreateCoprocScanner, preCreateCoprocScanner, setSmallestReadPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCompactor

public DefaultCompactor(org.apache.hadoop.conf.Configuration conf,
                        Store store)
Method Detail

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.