Package io.substrait.function
Class ImmutableTypeExpression.Decimal.Builder
java.lang.Object
io.substrait.function.ImmutableTypeExpression.Decimal.Builder
- Enclosing class:
- ImmutableTypeExpression.Decimal
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newDecimal.from(NullableType instance) Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.from(TypeExpression.Decimal instance) Fill a builder with attribute values from the providedio.substrait.function.TypeExpression.Decimalinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.precision(TypeExpression precision) Initializes the value for theprecisionattribute.scale(TypeExpression scale) Initializes the value for thescaleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.substrait.function.TypeExpression.Decimalinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
nullable
Initializes the value for thenullableattribute.- Parameters:
nullable- The value for nullable- Returns:
thisbuilder for use in a chained invocation
-
scale
Initializes the value for thescaleattribute.- Parameters:
scale- The value for scale- Returns:
thisbuilder for use in a chained invocation
-
precision
Initializes the value for theprecisionattribute.- Parameters:
precision- The value for precision- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newDecimal.- Returns:
- An immutable instance of Decimal
- Throws:
IllegalStateException- if any required attributes are missing
-