Package io.substrait.function
Class ImmutableParameterizedType.Func.Builder
java.lang.Object
io.substrait.function.ImmutableParameterizedType.Func.Builder
- Enclosing class:
- ImmutableParameterizedType.Func
-
Method Summary
Modifier and TypeMethodDescriptionaddAllParameterTypes(Iterable<? extends ParameterizedType> elements) Adds elements toparameterTypeslist.addParameterTypes(ParameterizedType element) Adds one element toparameterTypeslist.addParameterTypes(ParameterizedType... elements) Adds elements toparameterTypeslist.build()Builds a newFunc.from(NullableType instance) Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.from(ParameterizedType.Func instance) Fill a builder with attribute values from the providedio.substrait.function.ParameterizedType.Funcinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.parameterTypes(Iterable<? extends ParameterizedType> elements) Sets or replaces all elements forparameterTypeslist.returnType(ParameterizedType returnType) Initializes the value for thereturnTypeattribute.
-
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.function.ParameterizedType.Funcinstance.- 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
-
addParameterTypes
Adds one element toparameterTypeslist.- Parameters:
element- A parameterTypes element- Returns:
thisbuilder for use in a chained invocation
-
addParameterTypes
public final ImmutableParameterizedType.Func.Builder addParameterTypes(ParameterizedType... elements) Adds elements toparameterTypeslist.- Parameters:
elements- An array of parameterTypes elements- Returns:
thisbuilder for use in a chained invocation
-
parameterTypes
public final ImmutableParameterizedType.Func.Builder parameterTypes(Iterable<? extends ParameterizedType> elements) Sets or replaces all elements forparameterTypeslist.- Parameters:
elements- An iterable of parameterTypes elements- Returns:
thisbuilder for use in a chained invocation
-
addAllParameterTypes
public final ImmutableParameterizedType.Func.Builder addAllParameterTypes(Iterable<? extends ParameterizedType> elements) Adds elements toparameterTypeslist.- Parameters:
elements- An iterable of parameterTypes elements- Returns:
thisbuilder for use in a chained invocation
-
returnType
Initializes the value for thereturnTypeattribute.- Parameters:
returnType- The value for returnType- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newFunc.- Returns:
- An immutable instance of Func
- Throws:
IllegalStateException- if any required attributes are missing
-