Class ImmutableTargetType.Uri

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

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

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

  • Method Details

    • getUri

      public String getUri()
      Specified by:
      getUri in class TargetType.Uri
      Returns:
      The value of the uri attribute
    • withUri

      public final ImmutableTargetType.Uri withUri(String value)
      Copy the current immutable object by setting a value for the uri attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for uri
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of Uri 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: uri.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableTargetType.Uri copyOf(TargetType.Uri instance)
      Creates an immutable copy of a TargetType.Uri 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 Uri instance
    • builder

      public static ImmutableTargetType.Uri.Builder builder()
      Creates a builder for Uri.
       ImmutableTargetType.Uri.builder()
          .uri(String) // required uri
          .build();
       
      Returns:
      A new Uri builder