Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class LateralJoinNode
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.LateralJoinNode
- Record Components:
left- the outer (driving) relation; must not be nullfunctionName- the name of the table-valued function; must not be blankarguments- scalar argument expressions (may reference left columns)location- source location of theLATERALkeyword
- All Implemented Interfaces:
RelNode
public record LateralJoinNode(RelNode left, String functionName, List<Operand> arguments, SourceLocation location)
extends Record
implements RelNode
A correlated / lateral table-valued function application that produces one
sub-relation per row of its left input.
Syntax: left LATERAL fn(arg, …) — for each row produced by
left, the arguments are evaluated against that row, the function body
is instantiated with those values, and the resulting rows are concatenated with
the outer row to form the output.
Unlike RelationFunctionCall (a leaf whose arguments must be
constants), this node carries a relational left child so
RelNode.children() includes it in the structural traversal. The TVF
arguments may reference columns from the left schema — that is the defining
property of a lateral join.
-
Constructor Summary
ConstructorsConstructorDescriptionLateralJoinNode(RelNode left, String functionName, List<Operand> arguments) Convenience constructor for tests; usesSourceLocation.UNKNOWN.LateralJoinNode(RelNode left, String functionName, List<Operand> arguments, SourceLocation location) Creates an instance of aLateralJoinNoderecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(RelNodeVisitor<R> visitor) Returns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionNamerecord component.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.darkcollective.relix.ast.RelNode
children, mapChildren, materializationMode, prettyPrint
-
Constructor Details
-
LateralJoinNode
public LateralJoinNode(RelNode left, String functionName, List<Operand> arguments, SourceLocation location) Creates an instance of aLateralJoinNoderecord class.- Parameters:
left- the value for theleftrecord componentfunctionName- the value for thefunctionNamerecord componentarguments- the value for theargumentsrecord componentlocation- the value for thelocationrecord component
-
LateralJoinNode
Convenience constructor for tests; usesSourceLocation.UNKNOWN.
-
-
Method Details
-
accept
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
functionName
Returns the value of thefunctionNamerecord component.- Returns:
- the value of the
functionNamerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
location
Returns the value of thelocationrecord component.
-