Class DatasetNamespaceCombinedResolver
- java.lang.Object
-
- io.openlineage.client.dataset.namespace.resolver.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 Summary
Constructors Constructor Description DatasetNamespaceCombinedResolver(DatasetConfig config)
DatasetNamespaceCombinedResolver(OpenLineageConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatasetIdentifier
resolve(DatasetIdentifier identifier)
java.lang.String
resolve(java.lang.String namespace)
Resolves namespace by dataset host resolvers defined in dataset config.java.net.URI
resolveHost(java.net.URI namespace)
Resolves namespace uri by dataset host resolvers defined in dataset config.
-
-
-
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
-
resolve
public DatasetIdentifier resolve(DatasetIdentifier identifier)
-
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
-
-