Class OpenLineageEgeriaFacetReader
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageEgeriaFacetReader
OpenLineageEgeriaFacetReader finds Egeria's custom run facets in the facets of a run. A producer that
cannot emit a facet under Egeria's name (egeria_runRetry, egeria_parametricSweep) may send the same content in
a facet with a name of its own; the caller lists those alternative facet names and the facet found under one of
them is read as if it had Egeria's name. The facet under Egeria's name always wins.
-
Method Summary
Modifier and TypeMethodDescriptiongetParametricSweep(OpenLineageRunFacets runFacets, List<String> alternativeFacetNames) Return the parametric sweep facet for a run.getRunRetry(OpenLineageRunFacets runFacets, List<String> alternativeFacetNames) Return the run retry facet for a run.parseFacetNames(String facetNames) Turn a configured list of facet names (separated by commas) into a list.
-
Method Details
-
getRunRetry
public static OpenLineageEgeriaRunRetryRunFacet getRunRetry(OpenLineageRunFacets runFacets, List<String> alternativeFacetNames) Return the run retry facet for a run.- Parameters:
runFacets- facets of the run (may be null)alternativeFacetNames- other facet names that carry the content of egeria_runRetry (may be null)- Returns:
- facet or null if the run has none
-
getParametricSweep
public static OpenLineageEgeriaParametricSweepRunFacet getParametricSweep(OpenLineageRunFacets runFacets, List<String> alternativeFacetNames) Return the parametric sweep facet for a run.- Parameters:
runFacets- facets of the run (may be null)alternativeFacetNames- other facet names that carry the content of egeria_parametricSweep (may be null)- Returns:
- facet or null if the run has none
-
parseFacetNames
Turn a configured list of facet names (separated by commas) into a list.- Parameters:
facetNames- configured value (may be null)- Returns:
- list of names, empty if there are none
-