Class MultiDirDateTrimmer
java.lang.Object
io.openlineage.client.dataset.partition.trimmer.MultiDirDateTrimmer
- All Implemented Interfaces:
DatasetNameTrimmer
Trims directory if last part is a string representing a date in a format /yyyy/MM or /yyyy/MM/dd
-
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
-
Constructor Details
-
MultiDirDateTrimmer
public MultiDirDateTrimmer()
-
-
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:
-
trim
Needs to override trim method to remove more than one directory at a time- Specified by:
trim
in interfaceDatasetNameTrimmer
- Parameters:
name
-- Returns:
-