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, tieringFunction
Fields 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 TypeMethodDescriptionvoid
append
(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, writers
Methods 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:CellSink
Append the given cell- Specified by:
append
in interfaceCellSink
- Overrides:
append
in 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:
commitWriters
in classAbstractMultiFileWriter
- Throws:
IOException
-