Package io.substrait.type
Class ImmutableType.TimestampTZ.Builder
java.lang.Object
io.substrait.type.ImmutableType.TimestampTZ.Builder
- Enclosing class:
- ImmutableType.TimestampTZ
Builds instances of type
TimestampTZ.
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 newTimestampTZ.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.TimestampTZ instance) Fill a builder with attribute values from the providedio.substrait.type.Type.TimestampTZinstance.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.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.TimestampTZinstance.- 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
-
build
Builds a newTimestampTZ.- Returns:
- An immutable instance of TimestampTZ
- Throws:
IllegalStateException- if any required attributes are missing
-