Class DatasetNamespaceCombinedResolver

java.lang.Object
io.openlineage.client.dataset.namespace.resolver.DatasetNamespaceCombinedResolver

public class DatasetNamespaceCombinedResolver extends 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 Details

    • DatasetNamespaceCombinedResolver

      public DatasetNamespaceCombinedResolver(OpenLineageConfig config)
    • DatasetNamespaceCombinedResolver

      public DatasetNamespaceCombinedResolver(DatasetConfig config)
  • Method Details

    • resolve

      public String resolve(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
    • resolve

      public DatasetIdentifier resolve(DatasetIdentifier identifier)
    • resolveHost

      public URI resolveHost(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