Class DateTieredMultiFileWriter
java.lang.Object
org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
org.apache.hadoop.hbase.regionserver.DateTieredMultiFileWriter
- All Implemented Interfaces:
CellSink,ShipperListener
- Direct Known Subclasses:
CustomTieringMultiFileWriter
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
FieldsModifier and TypeFieldDescriptionprotected final NavigableMap<Long,StoreFileWriter> private final booleanprotected Function<ExtendedCell,Long> Fields inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
sourceScanner, writerFactory -
Constructor Summary
ConstructorsConstructorDescriptionDateTieredMultiFileWriter(List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, boolean needEmptyFile) DateTieredMultiFileWriter(List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, boolean needEmptyFile, Function<ExtendedCell, Long> tieringFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(ExtendedCell cell) Append the given cellprotected voidSubclasses 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<StoreFileWriter>writers()Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
abortWriters, beforeShipped, commitWriters, commitWriters, init, preCloseWriter
-
Field Details
-
lowerBoundary2Writer
-
needEmptyFile
-
lowerBoundariesPolicies
-
tieringFunction
-
-
Constructor Details
-
DateTieredMultiFileWriter
public DateTieredMultiFileWriter(List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, boolean needEmptyFile) - Parameters:
lowerBoundariesPolicies- each window to storage policy map.needEmptyFile- whether need to create an empty store file if we haven't written out anything.
-
DateTieredMultiFileWriter
public DateTieredMultiFileWriter(List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, boolean needEmptyFile, Function<ExtendedCell, Long> tieringFunction) - Parameters:
lowerBoundariesPolicies- each window to storage policy map.needEmptyFile- whether need to create an empty store file if we haven't written out anything.
-
-
Method Details
-
append
Description copied from interface:CellSinkAppend the given cell- Parameters:
cell- the cell to be added- Throws:
IOException
-
writers
- Specified by:
writersin classAbstractMultiFileWriter
-
preCommitWriters
Description copied from class:AbstractMultiFileWriterSubclasses 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:
preCommitWritersin classAbstractMultiFileWriter- Throws:
IOException
-