Class CustomTieringMultiFileWriter
java.lang.Object
org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
org.apache.hadoop.hbase.regionserver.DateTieredMultiFileWriter
org.apache.hadoop.hbase.regionserver.CustomTieringMultiFileWriter
- All Implemented Interfaces:
CellSink,ShipperListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
AbstractMultiFileWriter.WriterFactory -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.regionserver.DateTieredMultiFileWriter
lowerBoundary2Writer, tieringFunctionFields inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
sourceScanner, writerFactory -
Constructor Summary
ConstructorsConstructorDescriptionCustomTieringMultiFileWriter(List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, boolean needEmptyFile, Function<ExtendedCell, Long> tieringFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(ExtendedCell cell) Append the given cellList<org.apache.hadoop.fs.Path>commitWriters(long maxSeqId, boolean majorCompaction, Collection<HStoreFile> storeFiles) Methods inherited from class org.apache.hadoop.hbase.regionserver.DateTieredMultiFileWriter
preCommitWriters, writersMethods inherited from class org.apache.hadoop.hbase.regionserver.AbstractMultiFileWriter
abortWriters, beforeShipped, commitWriters, init, preCloseWriter
-
Field Details
-
CUSTOM_TIERING_TIME_RANGE
-
lowerBoundary2TimeRanger
-
-
Constructor Details
-
CustomTieringMultiFileWriter
public CustomTieringMultiFileWriter(List<Long> lowerBoundaries, Map<Long, String> lowerBoundariesPolicies, boolean needEmptyFile, Function<ExtendedCell, Long> tieringFunction)
-
-
Method Details
-
append
Description copied from interface:CellSinkAppend the given cell- Specified by:
appendin interfaceCellSink- Overrides:
appendin classDateTieredMultiFileWriter- Parameters:
cell- the cell to be added- Throws:
IOException
-
commitWriters
public List<org.apache.hadoop.fs.Path> commitWriters(long maxSeqId, boolean majorCompaction, Collection<HStoreFile> storeFiles) throws IOException - Overrides:
commitWritersin classAbstractMultiFileWriter- Throws:
IOException
-