Package io.substrait.expression
Class ImmutableExpression.EmptyMapLiteral.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.EmptyMapLiteral.Builder
- Enclosing class:
- ImmutableExpression.EmptyMapLiteral
Builds instances of type
EmptyMapLiteral.
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 newEmptyMapLiteral.from(Expression.EmptyMapLiteral instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.EmptyMapLiteralinstance.from(Expression.Literal instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.Literalinstance.Initializes the value for thekeyTypeattribute.nullable(boolean nullable) Initializes the value for thenullableattribute.Initializes the value for thevalueTypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.expression.Expression.EmptyMapLiteralinstance.- 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.Literalinstance.- 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
-
keyType
Initializes the value for thekeyTypeattribute.- Parameters:
keyType- The value for keyType- Returns:
thisbuilder for use in a chained invocation
-
valueType
Initializes the value for thevalueTypeattribute.- Parameters:
valueType- The value for valueType- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEmptyMapLiteral.- Returns:
- An immutable instance of EmptyMapLiteral
- Throws:
IllegalStateException- if any required attributes are missing
-