Class ImmutableIcebergTable

    • Method Detail

      • getId

        public String getId()
        Unique id for this object.

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

        Overrides:
        getId in class Content
      • 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
      • getSnapshotId

        public long getSnapshotId()
        Specified by:
        getSnapshotId in class IcebergTable
        Returns:
        The value of the snapshotId attribute
      • getSchemaId

        public int getSchemaId()
        Specified by:
        getSchemaId in class IcebergTable
        Returns:
        The value of the schemaId attribute
      • getSpecId

        public int getSpecId()
        Specified by:
        getSpecId in class IcebergTable
        Returns:
        The value of the specId attribute
      • getSortOrderId

        public int getSortOrderId()
        Specified by:
        getSortOrderId in class IcebergTable
        Returns:
        The value of the sortOrderId attribute
      • 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
      • withSnapshotId

        public final ImmutableIcebergTable withSnapshotId​(long value)
        Copy the current immutable object by setting a value for the snapshotId attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for snapshotId
        Returns:
        A modified copy of the this object
      • withSchemaId

        public final ImmutableIcebergTable withSchemaId​(int value)
        Copy the current immutable object by setting a value for the schemaId attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for schemaId
        Returns:
        A modified copy of the this object
      • withSpecId

        public final ImmutableIcebergTable withSpecId​(int value)
        Copy the current immutable object by setting a value for the specId attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for specId
        Returns:
        A modified copy of the this object
      • withSortOrderId

        public final ImmutableIcebergTable withSortOrderId​(int value)
        Copy the current immutable object by setting a value for the sortOrderId attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sortOrderId
        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, snapshotId, schemaId, specId, sortOrderId.
        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