Class ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
- java.lang.Object
-
- org.apache.flink.table.planner.plan.rules.logical.ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
-
- All Implemented Interfaces:
org.apache.calcite.plan.RelRule.Config
,FlinkCalcMergeRule.FlinkCalcMergeRuleConfig
- Enclosing class:
- ImmutableFlinkCalcMergeRule
@Immutable @CheckReturnValue public static final class ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig extends Object implements FlinkCalcMergeRule.FlinkCalcMergeRuleConfig
Immutable implementation ofFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
.Use the builder to create immutable instances:
ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig.Builder
Builds instances of typeFlinkCalcMergeRuleConfig
.
-
Field Summary
-
Fields inherited from interface org.apache.flink.table.planner.plan.rules.logical.FlinkCalcMergeRule.FlinkCalcMergeRuleConfig
DEFAULT, STREAM_PHYSICAL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig.Builder
builder()
Creates a builder forFlinkCalcMergeRuleConfig
.static ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
copyOf(FlinkCalcMergeRule.FlinkCalcMergeRuleConfig instance)
Creates an immutable copy of aFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
value.String
description()
boolean
equals(Object another)
This instance is equal to all instances ofFlinkCalcMergeRuleConfig
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:relBuilderFactory
,description
,operandSupplier
.org.apache.calcite.plan.RelRule.OperandTransform
operandSupplier()
org.apache.calcite.tools.RelBuilderFactory
relBuilderFactory()
String
toString()
Prints the immutable valueFlinkCalcMergeRuleConfig
with attribute values.ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
withDescription(String value)
Copy the current immutable object by setting a value for thedescription
attribute.ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform value)
Copy the current immutable object by setting a value for theoperandSupplier
attribute.ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory value)
Copy the current immutable object by setting a value for therelBuilderFactory
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.planner.plan.rules.logical.FlinkCalcMergeRule.FlinkCalcMergeRuleConfig
toRule
-
-
-
-
Method Detail
-
relBuilderFactory
public org.apache.calcite.tools.RelBuilderFactory relBuilderFactory()
- Specified by:
relBuilderFactory
in interfaceorg.apache.calcite.plan.RelRule.Config
- Returns:
- The value of the
relBuilderFactory
attribute
-
description
@Nullable public String description()
- Specified by:
description
in interfaceorg.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 interfaceorg.apache.calcite.plan.RelRule.Config
- Returns:
- The value of the
operandSupplier
attribute
-
withRelBuilderFactory
public final ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig withRelBuilderFactory(org.apache.calcite.tools.RelBuilderFactory value)
Copy the current immutable object by setting a value for therelBuilderFactory
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Specified by:
withRelBuilderFactory
in interfaceorg.apache.calcite.plan.RelRule.Config
- Parameters:
value
- A new value for relBuilderFactory- Returns:
- A modified copy of the
this
object
-
withDescription
public final ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig withDescription(@Nullable String value)
Copy the current immutable object by setting a value for thedescription
attribute. An equals check used to prevent copying of the same value by returningthis
.- Specified by:
withDescription
in interfaceorg.apache.calcite.plan.RelRule.Config
- Parameters:
value
- A new value for description (can benull
)- Returns:
- A modified copy of the
this
object
-
withOperandSupplier
public final ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig withOperandSupplier(org.apache.calcite.plan.RelRule.OperandTransform value)
Copy the current immutable object by setting a value for theoperandSupplier
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Specified by:
withOperandSupplier
in interfaceorg.apache.calcite.plan.RelRule.Config
- Parameters:
value
- A new value for operandSupplier- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofFlinkCalcMergeRuleConfig
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:relBuilderFactory
,description
,operandSupplier
.
-
toString
public String toString()
Prints the immutable valueFlinkCalcMergeRuleConfig
with attribute values.
-
copyOf
public static ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig copyOf(FlinkCalcMergeRule.FlinkCalcMergeRuleConfig instance)
Creates an immutable copy of aFlinkCalcMergeRule.FlinkCalcMergeRuleConfig
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 FlinkCalcMergeRuleConfig instance
-
builder
public static ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig.Builder builder()
Creates a builder forFlinkCalcMergeRuleConfig
.ImmutableFlinkCalcMergeRule.FlinkCalcMergeRuleConfig.builder() .relBuilderFactory(org.apache.calcite.tools.RelBuilderFactory) // optional
relBuilderFactory
.description(String | null) // nullabledescription
.operandSupplier(org.apache.calcite.plan.RelRule.OperandTransform) // optionaloperandSupplier
.build();- Returns:
- A new FlinkCalcMergeRuleConfig builder
-
-