Interface IgniteStatisticsManager

  • All Known Implementing Classes:
    IgniteStatisticsManagerImpl

    public interface IgniteStatisticsManager
    Statistics manager. Coordinate statistics collection and act as source of statistics.
    • Method Detail

      • dropStatistics

        void dropStatistics​(StatisticsTarget... targets)
                     throws IgniteCheckedException
        Clear object statistics.
        Parameters:
        targets - Collection of target to collect statistics by (schema, obj, columns).
        Throws:
        IgniteCheckedException - In case of errors (for example: unsupported feature)
      • getLocalStatistics

        ObjectStatistics getLocalStatistics​(StatisticsKey key)
        Get local statistics by object.
        Parameters:
        key - Statistic key.
        Returns:
        Object statistics or null if there are no available statistics by specified object.
      • getGlobalStatistics

        ObjectStatistics getGlobalStatistics​(StatisticsKey key)
        Get global statistics by object.
        Parameters:
        key - Statistic key.
        Returns:
        Object statistics of null if there are no available global statistics by specified object.
      • stop

        void stop()
        Stop statistic manager.
      • onRowUpdated

        void onRowUpdated​(String schemaName,
                          String objName,
                          int partId,
                          byte[] keyBytes)
        To track statistics invalidation. Skip value if no statistics for the given table exists.
        Parameters:
        schemaName - Schema name.
        objName - Object name.
        partId - Partition id.
        keyBytes - Row key bytes.