Class YearMonthTrimmer
java.lang.Object
io.openlineage.client.dataset.partition.trimmer.YearMonthTrimmer
- All Implemented Interfaces:
DatasetNameTrimmer
Normalizes if last part is a string representing a year month in an arbitrary format.
Heuristics: - try to find within a string a year month in any of the defined formats: yyyyMM, yyyy-MM - if not found, return false - remove the identified year month from the string
-
Field Summary
Fields inherited from interface io.openlineage.client.dataset.partition.trimmer.DatasetNameTrimmer
SEPARATOR
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openlineage.client.dataset.partition.trimmer.DatasetNameTrimmer
getLastPart, hasMultipleDirectories, trim
-
Constructor Details
-
YearMonthTrimmer
public YearMonthTrimmer()
-
-
Method Details
-
canTrim
Description copied from interface:DatasetNameTrimmer
Determines if the last part of a dataset can be trimmed.- Specified by:
canTrim
in interfaceDatasetNameTrimmer
- Returns:
-