Class ImmutableFlinkFilterJoinRuleConfig.Builder
java.lang.Object
org.apache.flink.table.planner.plan.rules.logical.ImmutableFlinkFilterJoinRuleConfig.Builder
- Enclosing class:
- ImmutableFlinkFilterJoinRuleConfig
Builds instances of type
ImmutableFlinkFilterJoinRuleConfig.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableFlinkFilterJoinRuleConfig.from(org.apache.calcite.plan.RelRule.Config instance) Fill a builder with attribute values from the providedorg.apache.calcite.plan.RelRule.Configinstance.from(FlinkFilterJoinRule.Config instance) Fill a builder with attribute values from the providedorg.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.Configinstance.Fill a builder with attribute values from the providedorg.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfiginstance.withDescription(String description) Initializes the value for thedescriptionattribute.withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform operandSupplier) Initializes the value for theoperandSupplierattribute.withPredicate(FlinkFilterJoinRule.Predicate predicate) Initializes the value for thepredicateattribute.withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory relBuilderFactory) Initializes the value for therelBuilderFactoryattribute.withSmart(boolean smart) Initializes the value for thesmartattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder from(org.apache.calcite.plan.RelRule.Config instance) Fill a builder with attribute values from the providedorg.apache.calcite.plan.RelRule.Configinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder from(FlinkFilterJoinRule.Config instance) Fill a builder with attribute values from the providedorg.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.Configinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder from(FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfig instance) Fill a builder with attribute values from the providedorg.apache.flink.table.planner.plan.rules.logical.FlinkFilterJoinRule.FlinkJoinConditionPushRule.FlinkFilterJoinRuleConfiginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withRelBuilderFactory
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory relBuilderFactory) Initializes the value for therelBuilderFactoryattribute.If not set, this attribute will have a default value as returned by the initializer of
relBuilderFactory.- Parameters:
relBuilderFactory- The value for relBuilderFactory- Returns:
thisbuilder for use in a chained invocation
-
withDescription
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder withDescription(@Nullable String description) Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withOperandSupplier
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform operandSupplier) Initializes the value for theoperandSupplierattribute.If not set, this attribute will have a default value as returned by the initializer of
operandSupplier.- Parameters:
operandSupplier- The value for operandSupplier- Returns:
thisbuilder for use in a chained invocation
-
withSmart
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder withSmart(boolean smart) Initializes the value for thesmartattribute.If not set, this attribute will have a default value as returned by the initializer of
smart.- Parameters:
smart- The value for smart- Returns:
thisbuilder for use in a chained invocation
-
withPredicate
@CanIgnoreReturnValue public final ImmutableFlinkFilterJoinRuleConfig.Builder withPredicate(FlinkFilterJoinRule.Predicate predicate) Initializes the value for thepredicateattribute.- Parameters:
predicate- The value for predicate- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFlinkFilterJoinRuleConfig.- Returns:
- An immutable instance of FlinkFilterJoinRuleConfig
- Throws:
IllegalStateException- if any required attributes are missing
-