Record Class JoinResolution.BoundsFacts

java.lang.Object
java.lang.Record
com.darkcollective.relix.symbol.graph.JoinResolution.BoundsFacts
Record Components:
fanOut - some endpoint has max > 1 or an unbounded max
rowDrop - some endpoint has min == 0
Enclosing interface:
JoinResolution

public static record JoinResolution.BoundsFacts(boolean fanOut, boolean rowDrop) extends Record
Multiplicity facts of a chosen path: whether the join fans out (an endpoint admits more than one match, repeating rows) and whether an inner join may drop rows (an endpoint's min is zero).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Neither effect — a clean 1:1 path.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BoundsFacts(boolean fanOut, boolean rowDrop)
    Creates an instance of a BoundsFacts record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    any()
    True if either effect is present (the join changes row multiplicity).
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the fanOut record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the rowDrop record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • BoundsFacts

      public BoundsFacts(boolean fanOut, boolean rowDrop)
      Creates an instance of a BoundsFacts record class.
      Parameters:
      fanOut - the value for the fanOut record component
      rowDrop - the value for the rowDrop record component
  • Method Details

    • any

      public boolean any()
      True if either effect is present (the join changes row multiplicity).
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fanOut

      public boolean fanOut()
      Returns the value of the fanOut record component.
      Returns:
      the value of the fanOut record component
    • rowDrop

      public boolean rowDrop()
      Returns the value of the rowDrop record component.
      Returns:
      the value of the rowDrop record component