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

public class DateTrimmer extends Object implements DatasetNameTrimmer
Normalizes if last part is a string representing a data in an arbitrary format.

Heuristics: - try to find within a string a date in any of the defined formats: yyyy-MM-dd, dd.MM.yyyy, yyyyMMdd - if not found, return false - remove the identified date from the string - remove single characters 'T' and 'Z' if they are present - remove whitespaces, colons, dots and hyphens - everything else should be empty of numeric characters

  • Constructor Details

    • DateTrimmer

      public DateTrimmer()
  • Method Details