Package io.substrait.expression
Class ImmutableExpression.Cast.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.Cast.Builder
- Enclosing class:
- ImmutableExpression.Cast
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newCast.failureBehavior(Expression.FailureBehavior failureBehavior) Initializes the value for thefailureBehaviorattribute.from(Expression.Cast instance) Fill a builder with attribute values from the providedCastinstance.input(Expression input) Initializes the value for theinputattribute.Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedCastinstance. 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
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
input
Initializes the value for theinputattribute.- Parameters:
input- The value for input- Returns:
thisbuilder for use in a chained invocation
-
failureBehavior
public final ImmutableExpression.Cast.Builder failureBehavior(Expression.FailureBehavior failureBehavior) Initializes the value for thefailureBehaviorattribute.- Parameters:
failureBehavior- The value for failureBehavior- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCast.- Returns:
- An immutable instance of Cast
- Throws:
IllegalStateException- if any required attributes are missing
-