Class LineageRelationship
- java.lang.Object
-
- io.datahubproject.openapi.generated.LineageRelationship
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2022-10-18T12:49:45.903581Z[Etc/UTC]") public class LineageRelationship extends java.lang.ObjectMetadata about a lineage relationship between two entities
-
-
Constructor Summary
Constructors Constructor Description LineageRelationship()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineageRelationshipaddPathItem(java.lang.String pathItem)LineageRelationshipdegree(java.lang.Integer degree)LineageRelationshipentity(java.lang.String entity)booleanequals(java.lang.Object o)@NotNull @Min(-2147483648L) @Max(2147483647L) java.lang.IntegergetDegree()Degree of relationship (number of hops to get to entity) minimum: -2147483648 maximum: 2147483647@NotNull java.lang.StringgetEntity()Entity that is related via lineage@NotNull java.util.List<java.lang.String>getPath()Optional list of entities between the source and destination node@NotNull java.lang.StringgetType()The type of the relationshipinthashCode()LineageRelationshippath(java.util.List<java.lang.String> path)voidsetDegree(java.lang.Integer degree)voidsetEntity(java.lang.String entity)voidsetPath(java.util.List<java.lang.String> path)voidsetType(java.lang.String type)java.lang.StringtoString()LineageRelationshiptype(java.lang.String type)
-
-
-
Method Detail
-
type
public LineageRelationship type(java.lang.String type)
-
getType
@NotNull public @NotNull java.lang.String getType()
The type of the relationship- Returns:
- type
-
setType
public void setType(java.lang.String type)
-
entity
public LineageRelationship entity(java.lang.String entity)
-
getEntity
@NotNull public @NotNull java.lang.String getEntity()
Entity that is related via lineage- Returns:
- entity
-
setEntity
public void setEntity(java.lang.String entity)
-
path
public LineageRelationship path(java.util.List<java.lang.String> path)
-
addPathItem
public LineageRelationship addPathItem(java.lang.String pathItem)
-
getPath
@NotNull public @NotNull java.util.List<java.lang.String> getPath()
Optional list of entities between the source and destination node- Returns:
- path
-
setPath
public void setPath(java.util.List<java.lang.String> path)
-
degree
public LineageRelationship degree(java.lang.Integer degree)
-
getDegree
@NotNull @Min(-2147483648L) @Max(2147483647L) public @NotNull @Min(-2147483648L) @Max(2147483647L) java.lang.Integer getDegree()
Degree of relationship (number of hops to get to entity) minimum: -2147483648 maximum: 2147483647- Returns:
- degree
-
setDegree
public void setDegree(java.lang.Integer degree)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-