Class RelOptAbstractTable

    • Field Detail

      • name

        protected final java.lang.String name
    • Constructor Detail

      • RelOptAbstractTable

        protected RelOptAbstractTable​(RelOptSchema schema,
                                      java.lang.String name,
                                      RelDataType rowType)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getQualifiedName

        public java.util.List<java.lang.String> getQualifiedName()
        Description copied from interface: RelOptTable
        Obtains an identifier for this table. The identifier must be unique with respect to the Connection producing this table.
        Specified by:
        getQualifiedName in interface RelOptTable
        qualified name
      • getRowCount

        public double getRowCount()
        Description copied from interface: RelOptTable
        Returns an estimate of the number of rows in the table.
        Specified by:
        getRowCount in interface RelOptTable
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> clazz)
        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
      • isKey

        public boolean isKey​(ImmutableBitSet columns)
        Description copied from interface: RelOptTable
        Returns whether the given columns are a key or a superset of a unique key of this table.
        Specified by:
        isKey in interface RelOptTable
        columns - Ordinals of key columns
        Whether the given columns are a key or a superset of a key
      • getExpression

        public Expression getExpression​(java.lang.Class clazz)
        Description copied from interface: RelOptTable
        Generates code for this table.
        Specified by:
        getExpression in interface RelOptTable
        clazz - The desired collection class; for example Queryable.
      • extend

        public RelOptTable extend​(java.util.List<RelDataTypeField> extendedFields)
        Description copied from interface: RelOptTable
        Returns a table with the given extra fields.

        The extended table includes the fields of this base table plus the extended fields that do not have the same name as a field in the base table.

        Specified by:
        extend in interface RelOptTable
      • getColumnStrategies

        public java.util.List<ColumnStrategy> getColumnStrategies()
        Description copied from interface: RelOptTable
        Returns a list describing how each column is populated. The list has the same number of entries as there are fields, and is immutable.
        Specified by:
        getColumnStrategies in interface RelOptTable