Class SqlCreateTable.MutableArrayTable

    • Constructor Detail

      • MutableArrayTable

        MutableArrayTable​(java.lang.String name,
                          RelProtoDataType protoStoredRowType,
                          RelProtoDataType protoRowType,
                          InitializerExpressionFactory initializerExpressionFactory)
        Creates a MutableArrayTable.
        Parameters:
        name - Name of table within its schema
        protoStoredRowType - Prototype of row type of stored columns (all columns except virtual columns)
        protoRowType - Prototype of row type (all columns)
        initializerExpressionFactory - How columns are populated
    • Method Detail

      • getModifiableCollection

        public java.util.Collection getModifiableCollection()
        Description copied from interface: ModifiableTable
        Returns the modifiable collection. Modifying the collection will change the table's contents.
        Specified by:
        getModifiableCollection in interface ModifiableTable
      • getElementType

        public java.lang.reflect.Type getElementType()
        Description copied from interface: QueryableTable
        Returns the element type of the collection that will implement this table.
        Specified by:
        getElementType in interface QueryableTable
      • getExpression

        public Expression getExpression​(SchemaPlus schema,
                                        java.lang.String tableName,
                                        java.lang.Class clazz)
        Description copied from interface: QueryableTable
        Generates an expression with which this table can be referenced in generated code.
        Specified by:
        getExpression in interface QueryableTable
        Parameters:
        schema - Schema
        tableName - Table name (unique within schema)
        clazz - The desired collection class; for example Queryable.
      • 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
      • unwrap

        public <C> C unwrap​(java.lang.Class<C> aClass)
        Description copied from interface: Wrapper
        Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
        Specified by:
        unwrap in interface Wrapper
        Overrides:
        unwrap in class AbstractTable