Class RowKeyDateTieringValueProvider
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.RowKeyDateTieringValueProvider
- All Implemented Interfaces:
CustomTieredCompactor.TieringValueProvider
@Private
public class RowKeyDateTieringValueProvider
extends Object
implements CustomTieredCompactor.TieringValueProvider
Provides a tiering value for compactions by extracting and parsing a date from the row key. This
implementation uses a configurable regex and date format to locate and parse a date substring
from the row key and returns the parsed epoch time in milliseconds. Configuration properties can
be set at globally or at table level.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetTieringValue(ExtendedCell cell) voidinit(org.apache.hadoop.conf.Configuration conf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.regionserver.compactions.CustomTieredCompactor.TieringValueProvider
decorateCells
-
Field Details
-
LOG
-
TIERING_KEY_DATE_PATTERN
- See Also:
-
TIERING_KEY_DATE_FORMAT
- See Also:
-
TIERING_KEY_DATE_GROUP
- See Also:
-
rowKeyPattern
-
dateFormat
-
rowKeyRegexExtractGroup
-
-
Constructor Details
-
RowKeyDateTieringValueProvider
public RowKeyDateTieringValueProvider()
-
-
Method Details
-
init
- Specified by:
initin interfaceCustomTieredCompactor.TieringValueProvider- Throws:
Exception
-
getTieringValue
- Specified by:
getTieringValuein interfaceCustomTieredCompactor.TieringValueProvider
-
getRowKeyPattern
-
getDateFormat
-
getRowKeyRegexExtractGroup
-