Package io.substrait.function
Class ImmutableParameterizedType.StringLiteral.Builder
java.lang.Object
io.substrait.function.ImmutableParameterizedType.StringLiteral.Builder
- Enclosing class:
- ImmutableParameterizedType.StringLiteral
Builds instances of type
StringLiteral.
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 newStringLiteral.from(NullableType instance) Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.from(ParameterizedType.StringLiteral instance) Fill a builder with attribute values from the providedio.substrait.function.ParameterizedType.StringLiteralinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.Initializes the value for thevalueattribute.
-
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
public final ImmutableParameterizedType.StringLiteral.Builder from(ParameterizedType.StringLiteral instance) Fill a builder with attribute values from the providedio.substrait.function.ParameterizedType.StringLiteralinstance.- 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
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newStringLiteral.- Returns:
- An immutable instance of StringLiteral
- Throws:
IllegalStateException- if any required attributes are missing
-