Class ImmutableExtensionLeaf.Builder

java.lang.Object
io.substrait.relation.ImmutableExtensionLeaf.Builder
Enclosing class:
ImmutableExtensionLeaf

public static final class ImmutableExtensionLeaf.Builder extends Object
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 Details

    • from

      public final ImmutableExtensionLeaf.Builder from(ExtensionLeaf instance)
      Fill a builder with attribute values from the provided io.substrait.relation.ExtensionLeaf instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableExtensionLeaf.Builder from(ZeroInputRel instance)
      Fill a builder with attribute values from the provided io.substrait.relation.ZeroInputRel instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableExtensionLeaf.Builder from(Rel instance)
      Fill a builder with attribute values from the provided io.substrait.relation.Rel instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableExtensionLeaf.Builder from(AbstractRel instance)
      Fill a builder with attribute values from the provided io.substrait.relation.AbstractRel instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • remap

      public final ImmutableExtensionLeaf.Builder remap(Rel.Remap remap)
      Initializes the optional value remap to remap.
      Parameters:
      remap - The value for remap
      Returns:
      this builder for chained invocation
    • remap

      public final ImmutableExtensionLeaf.Builder remap(Optional<? extends Rel.Remap> remap)
      Initializes the optional value remap to remap.
      Parameters:
      remap - The value for remap
      Returns:
      this builder for use in a chained invocation
    • commonExtension

      public final ImmutableExtensionLeaf.Builder commonExtension(AdvancedExtension commonExtension)
      Initializes the optional value commonExtension to commonExtension.
      Parameters:
      commonExtension - The value for commonExtension
      Returns:
      this builder for chained invocation
    • commonExtension

      public final ImmutableExtensionLeaf.Builder commonExtension(Optional<? extends AdvancedExtension> commonExtension)
      Initializes the optional value commonExtension to commonExtension.
      Parameters:
      commonExtension - The value for commonExtension
      Returns:
      this builder for use in a chained invocation
    • hint

      public final ImmutableExtensionLeaf.Builder hint(Hint hint)
      Initializes the optional value hint to hint.
      Parameters:
      hint - The value for hint
      Returns:
      this builder for chained invocation
    • hint

      public final ImmutableExtensionLeaf.Builder hint(Optional<? extends Hint> hint)
      Initializes the optional value hint to hint.
      Parameters:
      hint - The value for hint
      Returns:
      this builder for use in a chained invocation
    • deriveRecordType

      public final ImmutableExtensionLeaf.Builder deriveRecordType(Type.Struct deriveRecordType)
      Initializes the value for the deriveRecordType attribute.
      Parameters:
      deriveRecordType - The value for deriveRecordType
      Returns:
      this builder for use in a chained invocation
    • detail

      Initializes the value for the detail attribute.
      Parameters:
      detail - The value for detail
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableExtensionLeaf build()
      Returns:
      An immutable instance of ExtensionLeaf
      Throws:
      IllegalStateException - if any required attributes are missing