Package io.substrait.type
Class ImmutableType.Decimal.Builder
java.lang.Object
io.substrait.type.ImmutableType.Decimal.Builder
- Enclosing class:
- ImmutableType.Decimal
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newDecimal.from(NullableType instance) Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.Fill a builder with attribute values from the providedio.substrait.type.Typeinstance.from(Type.Decimal instance) Fill a builder with attribute values from the providedio.substrait.type.Type.Decimalinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.precision(int precision) Initializes the value for theprecisionattribute.scale(int 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.type.Typeinstance.- 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.type.Type.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
-