Class SqlAbstractSystemView

    • Field Detail

      • DEFAULT_ROW_COUNT_APPROXIMATION

        protected static final long DEFAULT_ROW_COUNT_APPROXIMATION
        Default row count approximation.
        See Also:
        Constant Field Values
      • tblName

        protected final String tblName
        Table name.
      • desc

        protected final String desc
        Description.
      • cols

        protected final org.h2.table.Column[] cols
        Columns.
      • indexes

        protected final String[] indexes
        Indexed column names.
    • Constructor Detail

      • SqlAbstractSystemView

        public SqlAbstractSystemView​(String tblName,
                                     String desc,
                                     GridKernalContext ctx,
                                     org.h2.table.Column[] cols,
                                     String[] indexes)
        Parameters:
        tblName - Table name.
        desc - Descriptor.
        ctx - Context.
        cols - Columns.
        indexes - Indexes.
    • Method Detail

      • newColumn

        protected static org.h2.table.Column newColumn​(String name)
        Parameters:
        name - Name.
      • newColumn

        protected static org.h2.table.Column newColumn​(String name,
                                                       int type)
        Parameters:
        name - Name.
        type - Type.
      • getColumns

        public org.h2.table.Column[] getColumns()
        Gets columns.
        Specified by:
        getColumns in interface SqlSystemView
      • getRowCount

        public long getRowCount()
        Gets row count for this view (or approximated row count, if real value can't be calculated quickly).
        Specified by:
        getRowCount in interface SqlSystemView
      • getRowCountApproximation

        public long getRowCountApproximation()
        Gets approximated row count (required to build execution plan).
        Specified by:
        getRowCountApproximation in interface SqlSystemView
      • canGetRowCount

        public boolean canGetRowCount()
        Check if the row count can be retrieved quickly.
        Specified by:
        canGetRowCount in interface SqlSystemView
        Returns:
        true if it can