Package io.substrait.relation
Class ImmutableExtensionLeaf.Builder
java.lang.Object
io.substrait.relation.ImmutableExtensionLeaf.Builder
- Enclosing class:
- ImmutableExtensionLeaf
Builds instances of type
ImmutableExtensionLeaf.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableExtensionLeaf.commonExtension(AdvancedExtension commonExtension) Initializes the optional valuecommonExtensionto commonExtension.commonExtension(Optional<? extends AdvancedExtension> commonExtension) Initializes the optional valuecommonExtensionto commonExtension.deriveRecordType(Type.Struct deriveRecordType) Initializes the value for thederiveRecordTypeattribute.detail(Extension.LeafRelDetail detail) Initializes the value for thedetailattribute.from(AbstractRel instance) Fill a builder with attribute values from the providedio.substrait.relation.AbstractRelinstance.from(ExtensionLeaf instance) Fill a builder with attribute values from the providedio.substrait.relation.ExtensionLeafinstance.Fill a builder with attribute values from the providedio.substrait.relation.Relinstance.from(ZeroInputRel instance) Fill a builder with attribute values from the providedio.substrait.relation.ZeroInputRelinstance.Initializes the optional valuehintto hint.Initializes the optional valuehintto hint.Initializes the optional valueremapto remap.Initializes the optional valueremapto remap.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.relation.ExtensionLeafinstance.- 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.relation.ZeroInputRelinstance.- 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.relation.Relinstance.- 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.relation.AbstractRelinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
remap
Initializes the optional valueremapto remap.- Parameters:
remap- The value for remap- Returns:
thisbuilder for chained invocation
-
remap
Initializes the optional valueremapto remap.- Parameters:
remap- The value for remap- Returns:
thisbuilder for use in a chained invocation
-
commonExtension
Initializes the optional valuecommonExtensionto commonExtension.- Parameters:
commonExtension- The value for commonExtension- Returns:
thisbuilder for chained invocation
-
commonExtension
public final ImmutableExtensionLeaf.Builder commonExtension(Optional<? extends AdvancedExtension> commonExtension) Initializes the optional valuecommonExtensionto commonExtension.- Parameters:
commonExtension- The value for commonExtension- Returns:
thisbuilder for use in a chained invocation
-
hint
Initializes the optional valuehintto hint.- Parameters:
hint- The value for hint- Returns:
thisbuilder for chained invocation
-
hint
Initializes the optional valuehintto hint.- Parameters:
hint- The value for hint- Returns:
thisbuilder for use in a chained invocation
-
deriveRecordType
Initializes the value for thederiveRecordTypeattribute.- Parameters:
deriveRecordType- The value for deriveRecordType- Returns:
thisbuilder for use in a chained invocation
-
detail
Initializes the value for thedetailattribute.- Parameters:
detail- The value for detail- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableExtensionLeaf.- Returns:
- An immutable instance of ExtensionLeaf
- Throws:
IllegalStateException- if any required attributes are missing
-