Package io.substrait.type
Class ImmutableType.VarChar.Builder
java.lang.Object
io.substrait.type.ImmutableType.VarChar.Builder
- Enclosing class:
- ImmutableType.VarChar
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newVarChar.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.VarChar instance) Fill a builder with attribute values from the providedio.substrait.type.Type.VarCharinstance.length(int length) Initializes the value for thelengthattribute.nullable(boolean nullable) Initializes the value for thenullableattribute.
-
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.Type.VarCharinstance.- 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
-
nullable
Initializes the value for thenullableattribute.- Parameters:
nullable- The value for nullable- Returns:
thisbuilder for use in a chained invocation
-
length
Initializes the value for thelengthattribute.- Parameters:
length- The value for length- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVarChar.- Returns:
- An immutable instance of VarChar
- Throws:
IllegalStateException- if any required attributes are missing
-