Package io.substrait.function
Class ImmutableTypeExpression.IfOperation.Builder
java.lang.Object
io.substrait.function.ImmutableTypeExpression.IfOperation.Builder
- Enclosing class:
- ImmutableTypeExpression.IfOperation
Builds instances of type
IfOperation.
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 newIfOperation.elseExpr(TypeExpression elseExpr) Initializes the value for theelseExprattribute.from(TypeExpression.IfOperation instance) Fill a builder with attribute values from the providedIfOperationinstance.ifCondition(TypeExpression ifCondition) Initializes the value for theifConditionattribute.thenExpr(TypeExpression thenExpr) Initializes the value for thethenExprattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedIfOperationinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
ifCondition
Initializes the value for theifConditionattribute.- Parameters:
ifCondition- The value for ifCondition- Returns:
thisbuilder for use in a chained invocation
-
thenExpr
Initializes the value for thethenExprattribute.- Parameters:
thenExpr- The value for thenExpr- Returns:
thisbuilder for use in a chained invocation
-
elseExpr
Initializes the value for theelseExprattribute.- Parameters:
elseExpr- The value for elseExpr- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newIfOperation.- Returns:
- An immutable instance of IfOperation
- Throws:
IllegalStateException- if any required attributes are missing
-