Package io.substrait.relation
Class ImmutableExtensionSingle.Builder
java.lang.Object
io.substrait.relation.ImmutableExtensionSingle.Builder
- Enclosing class:
- ImmutableExtensionSingle
Builds instances of type
ImmutableExtensionSingle.
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 newImmutableExtensionSingle.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.SingleRelDetail detail) Initializes the value for thedetailattribute.from(AbstractRel instance) Fill a builder with attribute values from the providedio.substrait.relation.AbstractRelinstance.from(ExtensionSingle instance) Fill a builder with attribute values from the providedio.substrait.relation.ExtensionSingleinstance.Fill a builder with attribute values from the providedio.substrait.relation.Relinstance.from(SingleInputRel instance) Fill a builder with attribute values from the providedio.substrait.relation.SingleInputRelinstance.Initializes the optional valuehintto hint.Initializes the optional valuehintto hint.Initializes the value for theinputattribute.Initializes the optional valueremapto remap.Initializes the optional valueremapto remap.
-
Method Details
-
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.ExtensionSingleinstance.- 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
-
from
Fill a builder with attribute values from the providedio.substrait.relation.SingleInputRelinstance.- 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 ImmutableExtensionSingle.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
-
input
Initializes the value for theinputattribute.- Parameters:
input- The value for input- 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 newImmutableExtensionSingle.- Returns:
- An immutable instance of ExtensionSingle
- Throws:
IllegalStateException- if any required attributes are missing
-