org.apache.hadoop.hbase.regionserver
Class DateTieredMultiFileWriter

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
      extended by org.apache.hadoop.hbase.regionserver.DateTieredMultiFileWriter
All Implemented Interfaces:
Compactor.CellSink

@InterfaceAudience.Private
public class DateTieredMultiFileWriter
extends AbstractMultiFileWriter

class for cell sink that separates the provided cells into multiple files for date tiered compaction.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
AbstractMultiFileWriter.WriterFactory
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
sourceScanner, writerFactory
 
Constructor Summary
DateTieredMultiFileWriter(List<Long> lowerBoundaries, boolean needEmptyFile)
           
 
Method Summary
 void append(KeyValue kv)
           
protected  void preCommitWriters()
          Subclasses override this method to be called at the end of a successful sequence of append; all appends are processed before this method is called.
protected  Collection<StoreFile.Writer> writers()
           
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
abortWriters, commitWriters, init, preCloseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTieredMultiFileWriter

public DateTieredMultiFileWriter(List<Long> lowerBoundaries,
                                 boolean needEmptyFile)
Parameters:
needEmptyFile - whether need to create an empty store file if we haven't written out anything.
Method Detail

append

public void append(KeyValue kv)
            throws IOException
Throws:
IOException

writers

protected Collection<StoreFile.Writer> writers()
Specified by:
writers in class AbstractMultiFileWriter

preCommitWriters

protected void preCommitWriters()
                         throws IOException
Description copied from class: AbstractMultiFileWriter
Subclasses override this method to be called at the end of a successful sequence of append; all appends are processed before this method is called.

Overrides:
preCommitWriters in class AbstractMultiFileWriter
Throws:
IOException


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