Class ImmutableIcebergView

    • 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 ViewMetadata file. The location depends on the (implementation of) Iceberg's FileIO configured for the particular Iceberg table.
        Specified by:
        getMetadataLocation in class IcebergView
      • getVersionId

        public int getVersionId()
        Specified by:
        getVersionId in class IcebergView
        Returns:
        The value of the versionId attribute
      • getSchemaId

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

        public final ImmutableIcebergView 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 ImmutableIcebergView 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
      • withVersionId

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

        public final ImmutableIcebergView 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
      • withSqlText

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

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

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

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

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