Class ListTable

  • All Implemented Interfaces:
    QueryableTable, Table, Wrapper

    class ListTable
    extends AbstractQueryableTable
    Implementation of table that reads rows from a read-only list and returns an enumerator of rows. Each row is object (if there is just one column) or an object array (if there are multiple columns).
    • Field Detail

      • list

        private final java.util.List list
    • Constructor Detail

      • ListTable

        ListTable​(java.lang.reflect.Type elementType,
                  RelProtoDataType protoRowType,
                  Expression expression,
                  java.util.List list)
        Creates a ListTable.
    • Method Detail

      • 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.

        typeFactory - Type factory with which to create the type
        Row type