Class ImmutableIcebergTable

    • Method Detail

      • getId

        public String getId()
        Unique id for this object.

        This id is unique for the entire lifetime of this Contents object and persists across renames. Two contents with the same key will have different id.

        Overrides:
        getId in class Contents
      • getMetadataLocation

        public String getMetadataLocation()
        Location where Iceberg stored its TableMetadata file. The location depends on the (implementation of) Iceberg's FileIO configured for the particular Iceberg table.
        Specified by:
        getMetadataLocation in class IcebergTable
      • withId

        public final ImmutableIcebergTable withId​(String value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id
        Returns:
        A modified copy of the this object
      • withMetadataLocation

        public final ImmutableIcebergTable withMetadataLocation​(String value)
        Copy the current immutable object by setting a value for the metadataLocation attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for metadataLocation
        Returns:
        A modified copy of the this object
      • withIdGenerators

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

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableIcebergTable 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: id, metadataLocation, idGenerators.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableIcebergTable copyOf​(IcebergTable instance)
        Creates an immutable copy of a IcebergTable 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 IcebergTable instance