Class ImmutableFlinkFilterJoinRuleConfig
java.lang.Object
org.apache.flink.table.planner.plan.rules.logical.ImmutableFlinkFilterJoinRuleConfig
- All Implemented Interfaces:
org.apache.calcite.plan.RelRule.Config,FlinkFilterJoinRule.Config,FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlinkFilterJoinRuleConfig
extends Object
implements FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig
Immutable implementation of
FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig.
Use the builder to create immutable instances:
ImmutableFlinkFilterJoinRuleConfig.builder().
Use the static factory method to create immutable instances:
ImmutableFlinkFilterJoinRuleConfig.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlinkFilterJoinRuleConfig. -
Field Summary
Fields inherited from interface org.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlinkFilterJoinRuleConfig.Creates an immutable copy of aFlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfigvalue.booleanThis instance is equal to all instances ofImmutableFlinkFilterJoinRuleConfigthat have equal attribute values.Predicate that returns whether a filter is valid in the ON clause of a join for this particular kind of join.inthashCode()Computes a hash code from attributes:relBuilderFactory,description,operandSupplier,smart,predicate.booleanisSmart()Whether to try to strengthen join-type, default false.of(FlinkFilterJoinRule.Predicate predicate) Construct a new immutableFlinkFilterJoinRuleConfiginstance.org.apache.calcite.plan.RelRule.OperandTransformorg.apache.calcite.tools.RelBuilderFactorytoString()Prints the immutable valueFlinkFilterJoinRuleConfigwith attribute values.withDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform value) Copy the current immutable object by setting a value for theoperandSupplierattribute.Copy the current immutable object by setting a value for thepredicateattribute.withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory value) Copy the current immutable object by setting a value for therelBuilderFactoryattribute.withSmart(boolean value) Copy the current immutable object by setting a value for thesmartattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig
toRuleMethods inherited from interface org.apache.calcite.plan.RelRule.Config
as
-
Method Details
-
relBuilderFactory
public org.apache.calcite.tools.RelBuilderFactory relBuilderFactory()- Specified by:
relBuilderFactoryin interfaceorg.apache.calcite.plan.RelRule.Config- Returns:
- The value of the
relBuilderFactoryattribute
-
description
- Specified by:
descriptionin interfaceorg.apache.calcite.plan.RelRule.Config- Returns:
- The value of the
descriptionattribute
-
operandSupplier
public org.apache.calcite.plan.RelRule.OperandTransform operandSupplier()- Specified by:
operandSupplierin interfaceorg.apache.calcite.plan.RelRule.Config- Returns:
- The value of the
operandSupplierattribute
-
isSmart
public boolean isSmart()Whether to try to strengthen join-type, default false.- Specified by:
isSmartin interfaceFlinkFilterJoinRule.Config
-
getPredicate
Predicate that returns whether a filter is valid in the ON clause of a join for this particular kind of join. If not, Calcite will push it back to above the join.- Specified by:
getPredicatein interfaceFlinkFilterJoinRule.Config
-
withRelBuilderFactory
public final ImmutableFlinkFilterJoinRuleConfig withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory value) Copy the current immutable object by setting a value for therelBuilderFactoryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Specified by:
withRelBuilderFactoryin interfaceorg.apache.calcite.plan.RelRule.Config- Parameters:
value- A new value for relBuilderFactory- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Specified by:
withDescriptionin interfaceorg.apache.calcite.plan.RelRule.Config- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withOperandSupplier
public final ImmutableFlinkFilterJoinRuleConfig withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform value) Copy the current immutable object by setting a value for theoperandSupplierattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Specified by:
withOperandSupplierin interfaceorg.apache.calcite.plan.RelRule.Config- Parameters:
value- A new value for operandSupplier- Returns:
- A modified copy of the
thisobject
-
withSmart
Copy the current immutable object by setting a value for thesmartattribute. A value equality check is used to prevent copying of the same value by returningthis.- Specified by:
withSmartin interfaceFlinkFilterJoinRule.Config- Parameters:
value- A new value for smart- Returns:
- A modified copy of the
thisobject
-
withPredicate
Copy the current immutable object by setting a value for thepredicateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Specified by:
withPredicatein interfaceFlinkFilterJoinRule.Config- Parameters:
value- A new value for predicate- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFlinkFilterJoinRuleConfigthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:relBuilderFactory,description,operandSupplier,smart,predicate. -
toString
Prints the immutable valueFlinkFilterJoinRuleConfigwith attribute values. -
of
Construct a new immutableFlinkFilterJoinRuleConfiginstance.- Parameters:
predicate- The value for thepredicateattribute- Returns:
- An immutable FlinkFilterJoinRuleConfig instance
-
copyOf
public static ImmutableFlinkFilterJoinRuleConfig copyOf(FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig instance) Creates an immutable copy of aFlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfigvalue. 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 FlinkFilterJoinRuleConfig instance
-
builder
Creates a builder forImmutableFlinkFilterJoinRuleConfig.ImmutableFlinkFilterJoinRuleConfig.builder() .withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory) // optionalrelBuilderFactory.withDescription(String | null) // nullabledescription.withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform) // optionaloperandSupplier.withSmart(boolean) // optionalsmart.withPredicate(org.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.Predicate) // requiredpredicate.build();- Returns:
- A new ImmutableFlinkFilterJoinRuleConfig builder
-