Enum Class OpenLineageFileMatching
java.lang.Object
java.lang.Enum<OpenLineageFileMatching>
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFileMatching
- All Implemented Interfaces:
Serializable,Comparable<OpenLineageFileMatching>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 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.The host name is significant.The host name is ignored. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLineageFileMatchingConvert a configured value into the matching.static OpenLineageFileMatchingReturn the matching to use when none is configured.Return the description of the matching.getName()Return the value used in configuration properties and request parameters.toString()Standard toString method.static OpenLineageFileMatchingReturns the enum constant of this class with the specified name.static OpenLineageFileMatching[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-
getName
Return the value used in configuration properties and request parameters.- Returns:
- string
-
getDescription
Return the description of the matching.- Returns:
- string
-
getDefault
Return the matching to use when none is configured.- Returns:
- ignore host
-
fromName
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
Standard toString method.- Overrides:
toStringin classEnum<OpenLineageFileMatching>- Returns:
- print out of variables in a JSON-style
-