Skip to content

Commit

Permalink
Merge pull request #1048 from atlanhq/FT-722
Browse files Browse the repository at this point in the history
FT-722: Added immediateNeighbors member to FluentLineage Class
  • Loading branch information
cmgrote authored Nov 26, 2024
2 parents 5c2e40a + be27a93 commit 9c73b8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sdk/src/main/java/com/atlan/model/lineage/FluentLineage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.atlan.model.enums.AtlanStatus;
import com.atlan.model.fields.*;
import com.atlan.model.relations.Reference;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
Expand Down Expand Up @@ -81,6 +82,11 @@ public static FluentLineageBuilder builder(AtlanClient client, String startingGu
@Builder.Default
FilterList.Condition relationshipsCondition = FilterList.Condition.AND;

/** Whether to include immediate neighbors of the starting asset in the response. */
@Builder.Default
@JsonProperty("immediateNeighbours")
Boolean immediateNeighbors = false;

/**
* Assets to include in the results. Any assets not matching these filters will not be included in the results,
* but will still be traversed in the lineage so that any assets beyond them are still considered for inclusion
Expand Down Expand Up @@ -148,6 +154,9 @@ public static FluentLineageBuilder builder(AtlanClient client, String startingGu
}
request.relationshipTraversalFilters(relationships.build());
}
if (immediateNeighbors != null) {
request.immediateNeighbors(immediateNeighbors);
}
if (includesInResults != null) {
FilterList.FilterListBuilder<?, ?> entities = FilterList.builder().condition(includesCondition);
for (LineageFilter asset : includesInResults) {
Expand Down

0 comments on commit 9c73b8d

Please sign in to comment.