org.apache.hadoop.hbase.regionserver.compactions
Class AbstractMultiOutputCompactor<T extends AbstractMultiFileWriter>

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.Compactor<T>
      extended by org.apache.hadoop.hbase.regionserver.compactions.AbstractMultiOutputCompactor<T>
Direct Known Subclasses:
DateTieredCompactor, StripeCompactor

@InterfaceAudience.Private
public abstract class AbstractMultiOutputCompactor<T extends AbstractMultiFileWriter>
extends Compactor<T>

Base class for implementing a Compactor which will generate multiple output files after compaction.


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
AbstractMultiOutputCompactor(org.apache.hadoop.conf.Configuration conf, Store store)
           
 
Method Summary
protected  void abortWriter(T writer)
           
protected  void initMultiWriter(AbstractMultiFileWriter writer, InternalScanner scanner, Compactor.FileDetails fd, boolean shouldDropBehind)
           
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.Compactor
commitWriter, 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

AbstractMultiOutputCompactor

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

initMultiWriter

protected void initMultiWriter(AbstractMultiFileWriter writer,
                               InternalScanner scanner,
                               Compactor.FileDetails fd,
                               boolean shouldDropBehind)

abortWriter

protected void abortWriter(T writer)
                    throws IOException
Specified by:
abortWriter in class Compactor<T extends AbstractMultiFileWriter>
Throws:
IOException


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