Class YearMonthTrimmer

java.lang.Object
io.openlineage.client.dataset.partition.trimmer.YearMonthTrimmer
All Implemented Interfaces:
DatasetNameTrimmer

public class YearMonthTrimmer extends Object implements 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

  • Constructor Details

    • YearMonthTrimmer

      public YearMonthTrimmer()
  • Method Details