Class BaseMetastoreViewCatalog.BaseViewBuilder

    • Constructor Detail

      • BaseViewBuilder

        protected BaseViewBuilder​(TableIdentifier identifier)
    • Method Detail

      • withQuery

        public ViewBuilder withQuery​(java.lang.String dialect,
                                     java.lang.String sql)
        Description copied from interface: VersionBuilder
        Add a view representation for the given dialect and the SQL to the view.
        Specified by:
        withQuery in interface VersionBuilder<ViewBuilder>
        Parameters:
        dialect - The dialect of the view representation
        sql - The SQL of the view representation
        Returns:
        this for method chaining
      • withDefaultCatalog

        public ViewBuilder withDefaultCatalog​(java.lang.String catalog)
        Description copied from interface: VersionBuilder
        Set the default catalog to use for the view.
        Specified by:
        withDefaultCatalog in interface VersionBuilder<ViewBuilder>
        Parameters:
        catalog - The default catalog to use when the SQL does not contain a catalog
        Returns:
        this for method chaining
      • withProperties

        public ViewBuilder withProperties​(java.util.Map<java.lang.String,​java.lang.String> newProperties)
        Description copied from interface: ViewBuilder
        Add key/value properties to the view.
        Specified by:
        withProperties in interface ViewBuilder
        Parameters:
        newProperties - key/value properties
        Returns:
        this for method chaining
      • withProperty

        public ViewBuilder withProperty​(java.lang.String key,
                                        java.lang.String value)
        Description copied from interface: ViewBuilder
        Add a key/value property to the view.
        Specified by:
        withProperty in interface ViewBuilder
        Parameters:
        key - a key
        value - a value
        Returns:
        this for method chaining
      • withLocation

        public ViewBuilder withLocation​(java.lang.String newLocation)
        Description copied from interface: ViewBuilder
        Sets a location for the view
        Specified by:
        withLocation in interface ViewBuilder
        Parameters:
        newLocation - the location to set for the view
        Returns:
        this for method chaining
      • create

        public View create()
        Description copied from interface: ViewBuilder
        Create the view.
        Specified by:
        create in interface ViewBuilder
        Returns:
        the view created