Package io.substrait.expression
Class ImmutableExpression.Lambda.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.Lambda.Builder
- Enclosing class:
- ImmutableExpression.Lambda
-
Method Summary
Modifier and TypeMethodDescriptionbody(Expression body) Initializes the value for thebodyattribute.build()Builds a newLambda.from(Expression.Lambda instance) Fill a builder with attribute values from the providedLambdainstance.parameters(Type.Struct parameters) Initializes the value for theparametersattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedLambdainstance. 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
-
parameters
Initializes the value for theparametersattribute.- Parameters:
parameters- The value for parameters- Returns:
thisbuilder for use in a chained invocation
-
body
Initializes the value for thebodyattribute.- Parameters:
body- The value for body- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newLambda.- Returns:
- An immutable instance of Lambda
- Throws:
IllegalStateException- if any required attributes are missing
-