Package io.substrait.function
Class ImmutableTypeExpression.Func.Builder
java.lang.Object
io.substrait.function.ImmutableTypeExpression.Func.Builder
- Enclosing class:
- ImmutableTypeExpression.Func
-
Method Summary
Modifier and TypeMethodDescriptionaddAllParameterTypes(Iterable<? extends TypeExpression> elements) Adds elements toparameterTypeslist.addParameterTypes(TypeExpression element) Adds one element toparameterTypeslist.addParameterTypes(TypeExpression... elements) Adds elements toparameterTypeslist.build()Builds a newFunc.from(NullableType instance) Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.from(TypeExpression.Func instance) Fill a builder with attribute values from the providedio.substrait.function.TypeExpression.Funcinstance.nullable(boolean nullable) Initializes the value for thenullableattribute.parameterTypes(Iterable<? extends TypeExpression> elements) Sets or replaces all elements forparameterTypeslist.returnType(TypeExpression 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.TypeExpression.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
public final ImmutableTypeExpression.Func.Builder parameterTypes(Iterable<? extends TypeExpression> 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 ImmutableTypeExpression.Func.Builder addAllParameterTypes(Iterable<? extends TypeExpression> 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
-