Package io.substrait.expression
Class ImmutableExpression.IfClause.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.IfClause.Builder
- Enclosing class:
- ImmutableExpression.IfClause
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newIfClause.condition(Expression condition) Initializes the value for theconditionattribute.from(Expression.IfClause instance) Fill a builder with attribute values from the providedIfClauseinstance.then(Expression then) Initializes the value for thethenattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedIfClauseinstance. 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
-
condition
Initializes the value for theconditionattribute.- Parameters:
condition- The value for condition- Returns:
thisbuilder for use in a chained invocation
-
then
Initializes the value for thethenattribute.- Parameters:
then- The value for then- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newIfClause.- Returns:
- An immutable instance of IfClause
- Throws:
IllegalStateException- if any required attributes are missing
-