Class SqlAbstractLocalSystemView

    • Constructor Detail

      • SqlAbstractLocalSystemView

        protected SqlAbstractLocalSystemView​(String tblName,
                                             String desc,
                                             GridKernalContext ctx,
                                             String[] indexes,
                                             org.h2.table.Column... cols)
        Parameters:
        tblName - Table name.
        desc - Description.
        ctx - Context.
        indexes - Indexes.
        cols - Columns.
      • SqlAbstractLocalSystemView

        protected SqlAbstractLocalSystemView​(String tblName,
                                             String desc,
                                             GridKernalContext ctx,
                                             String indexedCols,
                                             org.h2.table.Column... cols)
        Parameters:
        tblName - Table name.
        desc - Description.
        ctx - Context.
        indexedCols - Indexed columns.
        cols - Columns.
      • SqlAbstractLocalSystemView

        protected SqlAbstractLocalSystemView​(String tblName,
                                             String desc,
                                             GridKernalContext ctx,
                                             org.h2.table.Column... cols)
        Parameters:
        tblName - Table name.
        desc - Description.
        ctx - Context.
        cols - Columns.
    • Method Detail

      • createRow

        protected org.h2.result.Row createRow​(org.h2.engine.Session ses,
                                              Object... data)
        Parameters:
        ses - Session.
        data - Data for each column.
      • getColumnIndex

        protected int getColumnIndex​(String colName)
        Gets column index by name.
        Parameters:
        colName - Column name.
      • isDistributed

        public boolean isDistributed()
        Returns:
        True if view is distributed.
      • conditionForColumn

        protected SqlSystemViewColumnCondition conditionForColumn​(String colName,
                                                                  org.h2.result.SearchRow first,
                                                                  org.h2.result.SearchRow last)
        Parse condition for column.
        Parameters:
        colName - Column name.
        first - First.
        last - Last.
      • uuidFromValue

        protected static UUID uuidFromValue​(org.h2.value.Value val)
        Converts value to UUID safe (suppressing exceptions).
        Parameters:
        val - UUID.
      • valueTimestampFromMillis

        protected static org.h2.value.Value valueTimestampFromMillis​(long millis)
        Converts millis to ValueTimestamp
        Parameters:
        millis - Millis.
      • nodeFilter

        @Nullable
        protected static @Nullable String nodeFilter​(CacheConfiguration<?,​?> ccfg)
        Get node's filter string representation.
        Parameters:
        ccfg - Cache configuration.
        Returns:
        String representation of node filter.
      • toStringSafe

        @Nullable
        protected static @Nullable String toStringSafe​(@Nullable
                                                       @Nullable Object obj)
        Get string representation of an object properly catching all exceptions.
        Parameters:
        obj - Object.
        Returns:
        Result or null.