public class Lineage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Lineage.Type
Lineage metrics resource types.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LINEAGE_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Iterable<java.lang.String> rollupSegments)
Adds the given fqn as lineage.
|
void |
add(java.lang.String system,
java.lang.Iterable<java.lang.String> segments)
Add a FQN (fully-qualified name) to Lineage.
|
void |
add(java.lang.String system,
java.lang.Iterable<java.lang.String> segments,
@Nullable java.lang.String lastSegmentSep)
Add a FQN (fully-qualified name) to Lineage.
|
void |
add(java.lang.String system,
@Nullable java.lang.String subtype,
java.lang.Iterable<java.lang.String> segments,
@Nullable java.lang.String lastSegmentSep)
Add a FQN (fully-qualified name) to Lineage.
|
static Lineage |
getSinks()
Lineage representing sinks. |
static Lineage |
getSources()
Lineage representing sources and optionally side inputs. |
static java.util.Set<java.lang.String> |
query(MetricResults results,
Lineage.Type type)
Query
BoundedTrie metrics from MetricResults . |
static java.util.Set<java.lang.String> |
query(MetricResults results,
Lineage.Type type,
java.lang.String truncatedMarker)
Query
BoundedTrie metrics from MetricResults . |
static java.lang.String |
wrapSegment(java.lang.String value)
Wrap segment to valid segment name.
|
public static final java.lang.String LINEAGE_NAMESPACE
public static Lineage getSources()
Lineage
representing sources and optionally side inputs.public void add(java.lang.String system, @Nullable java.lang.String subtype, java.lang.Iterable<java.lang.String> segments, @Nullable java.lang.String lastSegmentSep)
getFQNParts(java.lang.String, java.lang.String, java.lang.Iterable<java.lang.String>, java.lang.String)
.public void add(java.lang.String system, java.lang.Iterable<java.lang.String> segments, @Nullable java.lang.String lastSegmentSep)
getFQNParts(java.lang.String, java.lang.String, java.lang.Iterable<java.lang.String>, java.lang.String)
.public void add(java.lang.String system, java.lang.Iterable<java.lang.String> segments)
getFQNParts(java.lang.String, java.lang.String, java.lang.Iterable<java.lang.String>, java.lang.String)
.public void add(java.lang.Iterable<java.lang.String> rollupSegments)
rollupSegments
- should be an iterable of strings whose concatenation is a valid Dataplex FQN
which is already escaped.
In particular, this means they will often have trailing delimiters.
public static java.util.Set<java.lang.String> query(MetricResults results, Lineage.Type type, java.lang.String truncatedMarker)
BoundedTrie
metrics from MetricResults
.results
- FQNs from the result.type
- sources or sinks.truncatedMarker
- the marker to use to represent truncated FQNs.public static java.util.Set<java.lang.String> query(MetricResults results, Lineage.Type type)
BoundedTrie
metrics from MetricResults
.results
- FQNs from the resulttype
- sources or sinks@Internal public static java.lang.String wrapSegment(java.lang.String value)
It escapes reserved characters