Interface ViewRepresentation.Builder

    • Method Detail

      • dialect

        ViewRepresentation.Builder dialect​(String dialect)

        The dialect of the query engine.

        Parameters:
        dialect - The dialect of the query engine.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ViewDialect, ViewDialect
      • dialectVersion

        ViewRepresentation.Builder dialectVersion​(String dialectVersion)

        The version of the dialect of the query engine. For example, 3.0.0.

        Parameters:
        dialectVersion - The version of the dialect of the query engine. For example, 3.0.0.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • viewOriginalText

        ViewRepresentation.Builder viewOriginalText​(String viewOriginalText)

        The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users want to see the original DDL command that created the view.

        Parameters:
        viewOriginalText - The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users want to see the original DDL command that created the view.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • viewExpandedText

        ViewRepresentation.Builder viewExpandedText​(String viewExpandedText)

        The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example:

        • Fully qualify identifiers: SELECT * from table1 → SELECT * from db1.table1

        Parameters:
        viewExpandedText - The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example:

        • Fully qualify identifiers: SELECT * from table1 → SELECT * from db1.table1

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isStale

        ViewRepresentation.Builder isStale​(Boolean isStale)

        Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.

        Parameters:
        isStale - Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
        Returns:
        Returns a reference to this object so that method calls can be chained together.