Class DatasetNamespaceCombinedResolver


  • public class DatasetNamespaceCombinedResolver
    extends java.lang.Object
    Utility class to resolve hosts based on the dataset host resolver configured. Methods of the class should return original host address in case of no dataset host resolver defined
    • Constructor Detail

      • DatasetNamespaceCombinedResolver

        public DatasetNamespaceCombinedResolver​(OpenLineageConfig config)
      • DatasetNamespaceCombinedResolver

        public DatasetNamespaceCombinedResolver​(DatasetConfig config)
    • Method Detail

      • resolve

        public java.lang.String resolve​(java.lang.String namespace)
        Resolves namespace by dataset host resolvers defined in dataset config. Whole namespace string is passed to dataset namespace resolvers.
        Parameters:
        namespace - namespace that may contain host address to be resolved
        Returns:
        resolved host address or the original one
      • resolveHost

        public java.net.URI resolveHost​(java.net.URI namespace)
        Resolves namespace uri by dataset host resolvers defined in dataset config. Only host of the URI is passed to dataset namespace resolvers configured.
        Parameters:
        namespace - host address to be resolved
        Returns:
        resolved host address or the original one