Package io.substrait.expression
Class ImmutableExpression.DecimalLiteral.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.DecimalLiteral.Builder
- Enclosing class:
- ImmutableExpression.DecimalLiteral
Builds instances of type
DecimalLiteral.
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 newDecimalLiteral.from(Expression.DecimalLiteral instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.DecimalLiteralinstance.from(Expression.Literal instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.Literalinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.precision(int precision) Initializes the value for theprecisionattribute.scale(int scale) Initializes the value for thescaleattribute.value(com.google.protobuf.ByteString value) Initializes the value for thevalueattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.expression.Expression.Literalinstance.- 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.expression.Expression.DecimalLiteralinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
nullable
Initializes the value for thenullableattribute.If not set, this attribute will have a default value as returned by the initializer of
nullable.- Parameters:
nullable- The value for nullable- Returns:
thisbuilder for use in a chained invocation
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- 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
-
scale
Initializes the value for thescaleattribute.- Parameters:
scale- The value for scale- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newDecimalLiteral.- Returns:
- An immutable instance of DecimalLiteral
- Throws:
IllegalStateException- if any required attributes are missing
-