Package io.substrait.relation.physical
Class ImmutableNestedLoopJoin
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.BiRel
io.substrait.relation.physical.NestedLoopJoin
io.substrait.relation.physical.ImmutableNestedLoopJoin
- All Implemented Interfaces:
HasExtension,Rel
Immutable implementation of
NestedLoopJoin.
Use the builder to create immutable instances:
ImmutableNestedLoopJoin.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableNestedLoopJoin.Nested classes/interfaces inherited from class io.substrait.relation.physical.NestedLoopJoin
NestedLoopJoin.JoinType -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableNestedLoopJoin.static ImmutableNestedLoopJoincopyOf(NestedLoopJoin instance) Creates an immutable copy of aNestedLoopJoinvalue.booleanThis instance is equal to all instances ofImmutableNestedLoopJointhat have equal attribute values.getHint()getLeft()getRemap()getRight()inthashCode()Computes a hash code from attributes:extension,remap,commonExtension,hint,left,right,condition,joinType.toString()Prints the immutable valueNestedLoopJoinwith attribute values.final ImmutableNestedLoopJoinCopy the current immutable object by setting a present value for the optionalcommonExtensionattribute.final ImmutableNestedLoopJoinwithCommonExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for thecommonExtensionattribute.final ImmutableNestedLoopJoinwithCondition(Expression value) Copy the current immutable object by setting a value for theconditionattribute.final ImmutableNestedLoopJoinwithExtension(AdvancedExtension value) Copy the current immutable object by setting a present value for the optionalextensionattribute.final ImmutableNestedLoopJoinwithExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for theextensionattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting a present value for the optionalhintattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting an optional value for thehintattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting a value for thejoinTypeattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting a value for theleftattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting a present value for the optionalremapattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting an optional value for theremapattribute.final ImmutableNestedLoopJoinCopy the current immutable object by setting a value for therightattribute.Methods inherited from class io.substrait.relation.physical.NestedLoopJoin
accept, deriveRecordTypeMethods inherited from class io.substrait.relation.AbstractRel
getRecordType
-
Method Details
-
getExtension
- Returns:
- the
AdvancedExtensionassociated directly with the class
-
getRemap
- Returns:
- The value of the
remapattribute
-
getCommonExtension
- Returns:
- the
AdvancedExtensionassociated with aRelCommonmessage, if present
-
getHint
- Returns:
- The value of the
hintattribute
-
getLeft
-
getRight
-
getCondition
- Specified by:
getConditionin classNestedLoopJoin- Returns:
- The value of the
conditionattribute
-
getJoinType
- Specified by:
getJoinTypein classNestedLoopJoin- Returns:
- The value of the
joinTypeattribute
-
withExtension
Copy the current immutable object by setting a present value for the optionalextensionattribute.- Parameters:
value- The value for extension- Returns:
- A modified copy or
thisif not changed
-
withExtension
Copy the current immutable object by setting an optional value for theextensionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for extension- Returns:
- A modified copy or
thisif not changed
-
withRemap
Copy the current immutable object by setting a present value for the optionalremapattribute.- Parameters:
value- The value for remap- Returns:
- A modified copy or
thisif not changed
-
withRemap
Copy the current immutable object by setting an optional value for theremapattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for remap- Returns:
- A modified copy or
thisif not changed
-
withCommonExtension
Copy the current immutable object by setting a present value for the optionalcommonExtensionattribute.- Parameters:
value- The value for commonExtension- Returns:
- A modified copy or
thisif not changed
-
withCommonExtension
public final ImmutableNestedLoopJoin withCommonExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for thecommonExtensionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for commonExtension- Returns:
- A modified copy or
thisif not changed
-
withHint
Copy the current immutable object by setting a present value for the optionalhintattribute.- Parameters:
value- The value for hint- Returns:
- A modified copy or
thisif not changed
-
withHint
Copy the current immutable object by setting an optional value for thehintattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for hint- Returns:
- A modified copy or
thisif not changed
-
withLeft
Copy the current immutable object by setting a value for theleftattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for left- Returns:
- A modified copy or the
thisobject
-
withRight
Copy the current immutable object by setting a value for therightattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for right- Returns:
- A modified copy or the
thisobject
-
withCondition
Copy the current immutable object by setting a value for theconditionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for condition- Returns:
- A modified copy or the
thisobject
-
withJoinType
Copy the current immutable object by setting a value for thejoinTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for joinType- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableNestedLoopJointhat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:extension,remap,commonExtension,hint,left,right,condition,joinType. -
toString
Prints the immutable valueNestedLoopJoinwith attribute values. -
copyOf
Creates an immutable copy of aNestedLoopJoinvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable NestedLoopJoin instance
-
builder
Creates a builder forImmutableNestedLoopJoin.ImmutableNestedLoopJoin.builder() .extension(Optional<io.substrait.extension.AdvancedExtension>) // optionalextension.remap(Optional<io.substrait.relation.Rel.Remap>) // optionalremap.commonExtension(Optional<io.substrait.extension.AdvancedExtension>) // optionalcommonExtension.hint(Optional<io.substrait.hint.Hint>) // optionalhint.left(io.substrait.relation.Rel) // requiredleft.right(io.substrait.relation.Rel) // requiredright.condition(io.substrait.expression.Expression) // requiredcondition.joinType(io.substrait.relation.physical.NestedLoopJoin.JoinType) // requiredjoinType.build();- Returns:
- A new ImmutableNestedLoopJoin builder
-