Class ImmutableFlinkFilterIntoJoinRuleConfig

java.lang.Object
org.apache.flink.table.planner.plan.rules.logical.ImmutableFlinkFilterIntoJoinRuleConfig
All Implemented Interfaces:
org.apache.calcite.plan.RelRule.Config, FlinkFilterJoinRule.Config, FlinkFilterJoinRule.FlinkFilterIntoJoinRule.FlinkFilterIntoJoinRuleConfig

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFlinkFilterIntoJoinRuleConfig extends Object implements FlinkFilterJoinRule.FlinkFilterIntoJoinRule.FlinkFilterIntoJoinRuleConfig
Immutable implementation of FlinkFilterJoinRule.FlinkFilterIntoJoinRule.FlinkFilterIntoJoinRuleConfig.

Use the builder to create immutable instances: ImmutableFlinkFilterIntoJoinRuleConfig.builder(). Use the static factory method to create immutable instances: ImmutableFlinkFilterIntoJoinRuleConfig.of().

  • Method Details

    • relBuilderFactory

      public org.apache.calcite.tools.RelBuilderFactory relBuilderFactory()
      Specified by:
      relBuilderFactory in interface org.apache.calcite.plan.RelRule.Config
      Returns:
      The value of the relBuilderFactory attribute
    • description

      @Nullable public String description()
      Specified by:
      description in interface org.apache.calcite.plan.RelRule.Config
      Returns:
      The value of the description attribute
    • operandSupplier

      public org.apache.calcite.plan.RelRule.OperandTransform operandSupplier()
      Specified by:
      operandSupplier in interface org.apache.calcite.plan.RelRule.Config
      Returns:
      The value of the operandSupplier attribute
    • isSmart

      public boolean isSmart()
      Whether to try to strengthen join-type, default false.
      Specified by:
      isSmart in interface FlinkFilterJoinRule.Config
    • getPredicate

      public FlinkFilterJoinRule.Predicate 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:
      getPredicate in interface FlinkFilterJoinRule.Config
    • withRelBuilderFactory

      public final ImmutableFlinkFilterIntoJoinRuleConfig withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory value)
      Copy the current immutable object by setting a value for the relBuilderFactory attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Specified by:
      withRelBuilderFactory in interface org.apache.calcite.plan.RelRule.Config
      Parameters:
      value - A new value for relBuilderFactory
      Returns:
      A modified copy of the this object
    • withDescription

      public final ImmutableFlinkFilterIntoJoinRuleConfig withDescription(@Nullable String value)
      Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
      Specified by:
      withDescription in interface org.apache.calcite.plan.RelRule.Config
      Parameters:
      value - A new value for description (can be null)
      Returns:
      A modified copy of the this object
    • withOperandSupplier

      public final ImmutableFlinkFilterIntoJoinRuleConfig withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform value)
      Copy the current immutable object by setting a value for the operandSupplier attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Specified by:
      withOperandSupplier in interface org.apache.calcite.plan.RelRule.Config
      Parameters:
      value - A new value for operandSupplier
      Returns:
      A modified copy of the this object
    • withSmart

      public final ImmutableFlinkFilterIntoJoinRuleConfig withSmart(boolean value)
      Copy the current immutable object by setting a value for the smart attribute. A value equality check is used to prevent copying of the same value by returning this.
      Specified by:
      withSmart in interface FlinkFilterJoinRule.Config
      Parameters:
      value - A new value for smart
      Returns:
      A modified copy of the this object
    • withPredicate

      Copy the current immutable object by setting a value for the predicate attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Specified by:
      withPredicate in interface FlinkFilterJoinRule.Config
      Parameters:
      value - A new value for predicate
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableFlinkFilterIntoJoinRuleConfig that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: relBuilderFactory, description, operandSupplier, smart, predicate.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value FlinkFilterIntoJoinRuleConfig with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • of

      Construct a new immutable FlinkFilterIntoJoinRuleConfig instance.
      Parameters:
      predicate - The value for the predicate attribute
      Returns:
      An immutable FlinkFilterIntoJoinRuleConfig instance
    • copyOf

      Creates an immutable copy of a FlinkFilterJoinRule.FlinkFilterIntoJoinRule.FlinkFilterIntoJoinRuleConfig value. 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 FlinkFilterIntoJoinRuleConfig instance
    • builder

      Creates a builder for ImmutableFlinkFilterIntoJoinRuleConfig.
       ImmutableFlinkFilterIntoJoinRuleConfig.builder()
          .withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory) // optional relBuilderFactory
          .withDescription(String | null) // nullable description
          .withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform) // optional operandSupplier
          .withSmart(boolean) // optional smart
          .withPredicate(org.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.Predicate) // required predicate
          .build();
       
      Returns:
      A new ImmutableFlinkFilterIntoJoinRuleConfig builder