Package io.substrait.type
Class ImmutableType.Func.Builder
java.lang.Object
io.substrait.type.ImmutableType.Func.Builder
- Enclosing class:
- ImmutableType.Func
-
Method Summary
Modifier and TypeMethodDescriptionaddAllParameterTypes(Iterable<? extends Type> elements) Adds elements toparameterTypeslist.addParameterTypes(Type element) Adds one element toparameterTypeslist.addParameterTypes(Type... elements) Adds elements toparameterTypeslist.build()Builds a newFunc.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.Fill a builder with attribute values from the providedio.substrait.type.Type.Funcinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.parameterTypes(Iterable<? extends Type> elements) Sets or replaces all elements forparameterTypeslist.returnType(Type 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.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.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
Adds elements toparameterTypeslist.- Parameters:
elements- An array of parameterTypes elements- Returns:
thisbuilder for use in a chained invocation
-
parameterTypes
Sets or replaces all elements forparameterTypeslist.- Parameters:
elements- An iterable of parameterTypes elements- Returns:
thisbuilder for use in a chained invocation
-
addAllParameterTypes
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
-