Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class IntervalJoinNode
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.IntervalJoinNode
- Record Components:
left- the left relation; must not be nullright- the right relation; must not be nullrelation- the Allen interval relation to test; must not be nullleftStart- the name of the left interval's start columnleftEnd- the name of the left interval's end columnrightStart- the name of the right interval's start columnrightEnd- the name of the right interval's end columnlocation- the source location of this node; never null
- All Implemented Interfaces:
RelNode
public record IntervalJoinNode(RelNode left, RelNode right, AllenRelation relation, String leftStart, String leftEnd, String rightStart, String rightEnd, SourceLocation location)
extends Record
implements RelNode
Interval join (
IJOIN) — a temporal join over two interval-valued
relations using an Allen's interval algebra relation.
For each pair of rows (ℓ, r) whose interval columns satisfy the
chosen AllenRelation, the join emits the concatenation of the two
rows. This is always an inner join (unmatched rows are dropped).
The four endpoint columns are specified by name; all must be temporal
(DATE, TIME, or TIMESTAMP).
Example:
Stays IJOIN OVERLAPS (Stays.checkin, Stays.checkout, Bookings.from, Bookings.to)
Bookings
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalJoinNode(RelNode left, RelNode right, AllenRelation relation, String leftStart, String leftEnd, String rightStart, String rightEnd) Convenience constructor for tests; usesSourceLocation.UNKNOWN.IntervalJoinNode(RelNode left, RelNode right, AllenRelation relation, String leftStart, String leftEnd, String rightStart, String rightEnd, SourceLocation location) Creates an instance of aIntervalJoinNoderecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(RelNodeVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.leftEnd()Returns the value of theleftEndrecord component.Returns the value of theleftStartrecord component.location()Returns the value of thelocationrecord component.relation()Returns the value of therelationrecord component.right()Returns the value of therightrecord component.rightEnd()Returns the value of therightEndrecord component.Returns the value of therightStartrecord 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
-
IntervalJoinNode
public IntervalJoinNode(RelNode left, RelNode right, AllenRelation relation, String leftStart, String leftEnd, String rightStart, String rightEnd, SourceLocation location) Creates an instance of aIntervalJoinNoderecord class.- Parameters:
left- the value for theleftrecord componentright- the value for therightrecord componentrelation- the value for therelationrecord componentleftStart- the value for theleftStartrecord componentleftEnd- the value for theleftEndrecord componentrightStart- the value for therightStartrecord componentrightEnd- the value for therightEndrecord componentlocation- the value for thelocationrecord component
-
IntervalJoinNode
public IntervalJoinNode(RelNode left, RelNode right, AllenRelation relation, String leftStart, String leftEnd, String rightStart, String rightEnd) 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
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
relation
Returns the value of therelationrecord component.- Returns:
- the value of the
relationrecord component
-
leftStart
Returns the value of theleftStartrecord component.- Returns:
- the value of the
leftStartrecord component
-
leftEnd
Returns the value of theleftEndrecord component.- Returns:
- the value of the
leftEndrecord component
-
rightStart
Returns the value of therightStartrecord component.- Returns:
- the value of the
rightStartrecord component
-
rightEnd
Returns the value of therightEndrecord component.- Returns:
- the value of the
rightEndrecord component
-
location
Returns the value of thelocationrecord component.
-