Class ViewTable

    • Field Detail

      • viewSql

        private final java.lang.String viewSql
      • schemaPath

        private final java.util.List<java.lang.String> schemaPath
      • viewPath

        private final java.util.List<java.lang.String> viewPath
    • Constructor Detail

      • ViewTable

        public ViewTable​(java.lang.reflect.Type elementType,
                         RelProtoDataType rowType,
                         java.lang.String viewSql,
                         java.util.List<java.lang.String> schemaPath,
                         java.util.List<java.lang.String> viewPath)
    • Method Detail

      • viewMacro

        @Deprecated
        public static ViewTableMacro viewMacro​(SchemaPlus schema,
                                               java.lang.String viewSql,
                                               java.util.List<java.lang.String> schemaPath)
        Deprecated.
      • viewMacro

        @Deprecated
        public static ViewTableMacro viewMacro​(SchemaPlus schema,
                                               java.lang.String viewSql,
                                               java.util.List<java.lang.String> schemaPath,
                                               java.lang.Boolean modifiable)
        Deprecated.
      • viewMacro

        public static ViewTableMacro viewMacro​(SchemaPlus schema,
                                               java.lang.String viewSql,
                                               java.util.List<java.lang.String> schemaPath,
                                               java.util.List<java.lang.String> viewPath,
                                               java.lang.Boolean modifiable)
        Table macro that returns a view.
        Parameters:
        schema - Schema the view will belong to
        viewSql - SQL query
        schemaPath - Path of schema
        modifiable - Whether view is modifiable, or null to deduce it
      • getViewSql

        public java.lang.String getViewSql()
        Returns the view's SQL definition.
      • getSchemaPath

        public java.util.List<java.lang.String> getSchemaPath()
        Returns the the schema path of the view.
      • getViewPath

        public java.util.List<java.lang.String> getViewPath()
        Returns the the path of the view.
      • getRowType

        public RelDataType getRowType​(RelDataTypeFactory typeFactory)
        Description copied from interface: Table
        Returns this table's row type.

        This is a struct type whose fields describe the names and types of the columns in this table.

        The implementer must use the type factory provided. This ensures that the type is converted into a canonical form; other equal types in the same query will use the same object.

        Specified by:
        getRowType in interface Table
        Parameters:
        typeFactory - Type factory with which to create the type
        Returns:
        Row type