Class ImmutableTargetType.Extended

java.lang.Object
io.substrait.relation.physical.TargetType.Extended
io.substrait.relation.physical.ImmutableTargetType.Extended
All Implemented Interfaces:
TargetType
Enclosing class:
ImmutableTargetType

public static final class ImmutableTargetType.Extended extends TargetType.Extended
Immutable implementation of TargetType.Extended.

Use the builder to create immutable instances: ImmutableTargetType.Extended.builder().

  • Method Details

    • getExtended

      public com.google.protobuf.Any getExtended()
      Specified by:
      getExtended in class TargetType.Extended
      Returns:
      The value of the extended attribute
    • withExtended

      public final ImmutableTargetType.Extended withExtended(com.google.protobuf.Any value)
      Copy the current immutable object by setting a value for the extended attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for extended
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of Extended that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: extended.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value Extended with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableTargetType.Extended copyOf(TargetType.Extended instance)
      Creates an immutable copy of a TargetType.Extended value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable Extended instance
    • builder

      public static ImmutableTargetType.Extended.Builder builder()
      Creates a builder for Extended.
       ImmutableTargetType.Extended.builder()
          .extended(com.google.protobuf.Any) // required extended
          .build();
       
      Returns:
      A new Extended builder