Package io.substrait.function
Class ImmutableTypeExpression.Assignment.Builder
java.lang.Object
io.substrait.function.ImmutableTypeExpression.Assignment.Builder
- Enclosing class:
- ImmutableTypeExpression.Assignment
Builds instances of type
Assignment.
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 newAssignment.expr(TypeExpression expr) Initializes the value for theexprattribute.from(TypeExpression.ReturnProgram.Assignment instance) Fill a builder with attribute values from the providedAssignmentinstance.Initializes the value for thenameattribute.
-
Method Details
-
from
public final ImmutableTypeExpression.Assignment.Builder from(TypeExpression.ReturnProgram.Assignment instance) Fill a builder with attribute values from the providedAssignmentinstance. 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
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
expr
Initializes the value for theexprattribute.- Parameters:
expr- The value for expr- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newAssignment.- Returns:
- An immutable instance of Assignment
- Throws:
IllegalStateException- if any required attributes are missing
-