Enum Class OpenLineageFileMatching

java.lang.Object
java.lang.Enum<OpenLineageFileMatching>
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFileMatching
All Implemented Interfaces:
Serializable, Comparable<OpenLineageFileMatching>, Constable

public enum OpenLineageFileMatching extends Enum<OpenLineageFileMatching>
OpenLineageFileMatching describes how a dataset in the OpenLineage file namespace is matched to the files, folders and data sets in open metadata. The namespace is either "file" or names the host that the producer read or wrote the file on ("file://{host}"), and the dataset name is the path name of the file on that host. The catalogued elements record a path name (the pathName of a data store or the resourceName of a data set) but not a host, and the same files are often seen from many hosts - each, possibly, through a different mount point. The choice is therefore between precision and finding the file whichever host reported it.
  • Enum Constant Details

    • HOST_NAME

      public static final OpenLineageFileMatching HOST_NAME
      The host name is significant. A dataset in the "file" namespace is matched to the elements with its path name. A dataset in a "file://{host}" namespace is only matched to an element that records that namespace and name as its OpenLineage identity (namespacePath and resourceName), so files with the same path name on different hosts are kept apart.
    • FILE_SYSTEM

      public static final OpenLineageFileMatching FILE_SYSTEM
      The host name is ignored, and the path name is also mapped through the mount points of the catalogued file systems, so that a file is found when its producer sees it beneath a different mount point to the one recorded in the catalog.
    • IGNORE_HOST

      public static final OpenLineageFileMatching IGNORE_HOST
      The host name is ignored. A dataset is matched to the elements with its path name, whichever host it was reported from.
  • Method Details

    • values

      public static OpenLineageFileMatching[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OpenLineageFileMatching valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Return the value used in configuration properties and request parameters.
      Returns:
      string
    • getDescription

      public String getDescription()
      Return the description of the matching.
      Returns:
      string
    • getDefault

      public static OpenLineageFileMatching getDefault()
      Return the matching to use when none is configured.
      Returns:
      ignore host
    • fromName

      public static OpenLineageFileMatching fromName(String value)
      Convert a configured value into the matching. The comparison ignores case and accepts either the configuration value (for example fileSystem) or the name of the enum constant (FILE_SYSTEM).
      Parameters:
      value - configured value
      Returns:
      matching, or null if the value is null, blank or not recognized
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Enum<OpenLineageFileMatching>
      Returns:
      print out of variables in a JSON-style