Interface ViewDefinition.Builder

    • Method Detail

      • isProtected

        ViewDefinition.Builder isProtected​(Boolean isProtected)

        You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.

        Parameters:
        isProtected - You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • definer

        ViewDefinition.Builder definer​(String definer)

        The definer of a view in SQL.

        Parameters:
        definer - The definer of a view in SQL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • viewVersionId

        ViewDefinition.Builder viewVersionId​(Long viewVersionId)

        The ID value that identifies this view's version. For materialized views, the version ID is the Apache Iceberg table's snapshot ID.

        Parameters:
        viewVersionId - The ID value that identifies this view's version. For materialized views, the version ID is the Apache Iceberg table's snapshot ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • viewVersionToken

        ViewDefinition.Builder viewVersionToken​(String viewVersionToken)

        The version ID of the Apache Iceberg table.

        Parameters:
        viewVersionToken - The version ID of the Apache Iceberg table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • refreshSeconds

        ViewDefinition.Builder refreshSeconds​(Long refreshSeconds)

        Auto refresh interval in seconds for the materialized view. If not specified, the view will not automatically refresh.

        Parameters:
        refreshSeconds - Auto refresh interval in seconds for the materialized view. If not specified, the view will not automatically refresh.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastRefreshType

        ViewDefinition.Builder lastRefreshType​(String lastRefreshType)

        Sets the method used for the most recent refresh.

        Parameters:
        lastRefreshType - Sets the method used for the most recent refresh.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LastRefreshType, LastRefreshType
      • lastRefreshType

        ViewDefinition.Builder lastRefreshType​(LastRefreshType lastRefreshType)

        Sets the method used for the most recent refresh.

        Parameters:
        lastRefreshType - Sets the method used for the most recent refresh.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LastRefreshType, LastRefreshType
      • subObjects

        ViewDefinition.Builder subObjects​(Collection<String> subObjects)

        A list of table Amazon Resource Names (ARNs).

        Parameters:
        subObjects - A list of table Amazon Resource Names (ARNs).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subObjects

        ViewDefinition.Builder subObjects​(String... subObjects)

        A list of table Amazon Resource Names (ARNs).

        Parameters:
        subObjects - A list of table Amazon Resource Names (ARNs).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subObjectVersionIds

        ViewDefinition.Builder subObjectVersionIds​(Collection<Long> subObjectVersionIds)

        List of the Apache Iceberg table versions referenced by the materialized view.

        Parameters:
        subObjectVersionIds - List of the Apache Iceberg table versions referenced by the materialized view.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subObjectVersionIds

        ViewDefinition.Builder subObjectVersionIds​(Long... subObjectVersionIds)

        List of the Apache Iceberg table versions referenced by the materialized view.

        Parameters:
        subObjectVersionIds - List of the Apache Iceberg table versions referenced by the materialized view.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • representations

        ViewDefinition.Builder representations​(Collection<ViewRepresentation> representations)

        A list of representations.

        Parameters:
        representations - A list of representations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • representations

        ViewDefinition.Builder representations​(ViewRepresentation... representations)

        A list of representations.

        Parameters:
        representations - A list of representations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.