Package io.substrait.function
Class ImmutableTypeExpression.Struct.Builder
java.lang.Object
io.substrait.function.ImmutableTypeExpression.Struct.Builder
- Enclosing class:
- ImmutableTypeExpression.Struct
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFields(Iterable<? extends TypeExpression> elements) Adds elements tofieldslist.addFields(TypeExpression element) Adds one element tofieldslist.addFields(TypeExpression... elements) Adds elements tofieldslist.build()Builds a newStruct.fields(Iterable<? extends TypeExpression> elements) Sets or replaces all elements forfieldslist.from(NullableType instance) Fill a builder with attribute values from the providedio.substrait.function.NullableTypeinstance.from(TypeExpression.Struct instance) Fill a builder with attribute values from the providedio.substrait.function.TypeExpression.Structinstance.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.function.TypeExpression.Structinstance.- 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
-
addFields
Adds one element tofieldslist.- Parameters:
element- A fields element- Returns:
thisbuilder for use in a chained invocation
-
addFields
Adds elements tofieldslist.- Parameters:
elements- An array of fields elements- Returns:
thisbuilder for use in a chained invocation
-
fields
public final ImmutableTypeExpression.Struct.Builder fields(Iterable<? extends TypeExpression> elements) Sets or replaces all elements forfieldslist.- Parameters:
elements- An iterable of fields elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFields
public final ImmutableTypeExpression.Struct.Builder addAllFields(Iterable<? extends TypeExpression> elements) Adds elements tofieldslist.- Parameters:
elements- An iterable of fields elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newStruct.- Returns:
- An immutable instance of Struct
- Throws:
IllegalStateException- if any required attributes are missing
-