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

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.Compactor<T>
      extended by org.apache.hadoop.hbase.regionserver.compactions.AbstractMultiOutputCompactor<DateTieredMultiFileWriter>
          extended by org.apache.hadoop.hbase.regionserver.compactions.DateTieredCompactor

@InterfaceAudience.Private
public class DateTieredCompactor
extends AbstractMultiOutputCompactor<DateTieredMultiFileWriter>

This compactor will generate StoreFile for different time ranges.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
Compactor.CellSink, Compactor.CellSinkFactory<S>, Compactor.FileDetails, Compactor.InternalScannerFactory
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
compactionCompression, conf, defaultScannerFactory, progress, store
 
Constructor Summary
DateTieredCompactor(org.apache.hadoop.conf.Configuration conf, Store store)
           
 
Method Summary
protected  List<org.apache.hadoop.fs.Path> commitWriter(DateTieredMultiFileWriter writer, Compactor.FileDetails fd, CompactionRequest request)
           
 List<org.apache.hadoop.fs.Path> compact(CompactionRequest request, List<Long> lowerBoundaries, CompactionThroughputController throughputController, User user)
           
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.AbstractMultiOutputCompactor
abortWriter, initMultiWriter
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
compact, createFileScanners, createScanner, createScanner, createTmpWriter, getFileDetails, getProgress, getSmallestReadPoint, performCompaction, postCreateCoprocScanner, preCreateCoprocScanner, preCreateCoprocScanner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTieredCompactor

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

compact

public List<org.apache.hadoop.fs.Path> compact(CompactionRequest request,
                                               List<Long> lowerBoundaries,
                                               CompactionThroughputController throughputController,
                                               User user)
                                        throws IOException
Throws:
IOException

commitWriter

protected List<org.apache.hadoop.fs.Path> commitWriter(DateTieredMultiFileWriter writer,
                                                       Compactor.FileDetails fd,
                                                       CompactionRequest request)
                                                throws IOException
Specified by:
commitWriter in class Compactor<DateTieredMultiFileWriter>
Throws:
IOException


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.