Record Class PhysicalNode.Trace

java.lang.Object
java.lang.Record
com.darkcollective.relix.plan.PhysicalNode.Trace
All Implemented Interfaces:
PhysicalNode
Enclosing interface:
PhysicalNode

public static record PhysicalNode.Trace(Schema schema, String fromColumn, String toColumn, boolean undirected, String weightColumn, ObjectiveSense sense, String pathColumn, TraceAlgorithm algorithm, Optional<Operand> boundSource, Optional<Operand> boundTarget, PhysicalNode input) extends Record implements PhysicalNode
Optimal-path extraction (TRACE) over the input weighted edge relation, read as directed edges or, when undirected(), as undirected ones. Computes, for every reachable (from, to) pair, the path that minimises or maximises the total edge weight, returning the traversed node sequence as an ordered array in pathColumn(). Evaluated in-engine via a Bellman-Ford–style all-pairs fixpoint; never pushed to a source.
  • Constructor Details

    • Trace

      public Trace(Schema schema, String fromColumn, String toColumn, boolean undirected, String weightColumn, ObjectiveSense sense, String pathColumn, Optional<Operand> boundSource, Optional<Operand> boundTarget, PhysicalNode input)
      Bounded trace evaluated by the default relaxation fixpoint.
    • Trace

      public Trace(Schema schema, String fromColumn, String toColumn, boolean undirected, String weightColumn, ObjectiveSense sense, String pathColumn, TraceAlgorithm algorithm, Optional<Operand> boundSource, Optional<Operand> boundTarget, PhysicalNode input)
      Creates an instance of a Trace record class.
      Parameters:
      schema - the value for the schema record component
      fromColumn - the value for the fromColumn record component
      toColumn - the value for the toColumn record component
      undirected - the value for the undirected record component
      weightColumn - the value for the weightColumn record component
      sense - the value for the sense record component
      pathColumn - the value for the pathColumn record component
      algorithm - the value for the algorithm record component
      boundSource - the value for the boundSource record component
      boundTarget - the value for the boundTarget record component
      input - the value for the input record component
  • Method Details

    • children

      public List<PhysicalNode> children()
      Description copied from interface: PhysicalNode
      Direct child plans, left-to-right; empty for a PhysicalNode.Scan.
      Specified by:
      children in interface PhysicalNode
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • schema

      public Schema schema()
      Returns the value of the schema record component.
      Specified by:
      schema in interface PhysicalNode
      Returns:
      the value of the schema record component
    • fromColumn

      public String fromColumn()
      Returns the value of the fromColumn record component.
      Returns:
      the value of the fromColumn record component
    • toColumn

      public String toColumn()
      Returns the value of the toColumn record component.
      Returns:
      the value of the toColumn record component
    • undirected

      public boolean undirected()
      Returns the value of the undirected record component.
      Returns:
      the value of the undirected record component
    • weightColumn

      public String weightColumn()
      Returns the value of the weightColumn record component.
      Returns:
      the value of the weightColumn record component
    • sense

      public ObjectiveSense sense()
      Returns the value of the sense record component.
      Returns:
      the value of the sense record component
    • pathColumn

      public String pathColumn()
      Returns the value of the pathColumn record component.
      Returns:
      the value of the pathColumn record component
    • algorithm

      public TraceAlgorithm algorithm()
      Returns the value of the algorithm record component.
      Returns:
      the value of the algorithm record component
    • boundSource

      public Optional<Operand> boundSource()
      Returns the value of the boundSource record component.
      Returns:
      the value of the boundSource record component
    • boundTarget

      public Optional<Operand> boundTarget()
      Returns the value of the boundTarget record component.
      Returns:
      the value of the boundTarget record component
    • input

      public PhysicalNode input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component