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