Package io.substrait.type
Class ImmutableType.Struct.Builder
java.lang.Object
io.substrait.type.ImmutableType.Struct.Builder
- Enclosing class:
- ImmutableType.Struct
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFields(Iterable<? extends Type> elements) Adds elements tofieldslist.Adds one element tofieldslist.Adds elements tofieldslist.build()Builds a newStruct.Sets or replaces all elements forfieldslist.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.from(Type.Struct instance) Fill a builder with attribute values from the providedio.substrait.type.Type.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.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.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
Sets or replaces all elements forfieldslist.- Parameters:
elements- An iterable of fields elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFields
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
-