java.lang.Object
org.qubership.atp.dataset.service.jpa.model.tree.OverlapNode
All Implemented Interfaces:
Serializable

public class OverlapNode extends Object implements Serializable
Overlap model. Makes hierarchy from attribute keys. Repeats DSL structure. If overlap already exists for some parameter, that means it was overlapped by some DSL from higher level, so we will ignore it.
See Also:
  • Constructor Details

    • OverlapNode

      public OverlapNode(UUID id, UUID dataSetListId, int columns)
      Default constructor.
  • Method Details

    • addOverlap

      public void addOverlap(List<UUID> path, int columnNumber, AttributeKey attributeKey)
      New overlap to structure. If field already overlapped - operation will skipped, to save hierarchy multiple overlaps.
    • getOverlap

      public AttributeKey getOverlap(List<UUID> path, int column, UUID attributeId)
      Returns overlap by parameter context.
    • containsOverlapsInPath

      public boolean containsOverlapsInPath(List<UUID> path, int column)
      True if there is any overlaps by path OR deeper.