Class ObjectStatisticsImpl

    • Constructor Detail

      • ObjectStatisticsImpl

        public ObjectStatisticsImpl​(long rowsCnt,
                                    Map<String,​ColumnStatistics> colNameToStat)
        Constructor.
        Parameters:
        rowsCnt - Total rows count.
        colNameToStat - Column names to statistics map.
    • Method Detail

      • rowCount

        public long rowCount()
        Returns:
        Object rows count.
      • columnStatistics

        public ColumnStatistics columnStatistics​(String colName)
        Get column statistics.
        Parameters:
        colName - Column name.
        Returns:
        Column statistics or null if there are no statistics for specified column.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • subtract

        public <T extends ObjectStatisticsImpl> T subtract​(Set<String> cols)
        Remove specified columns from clone of current ObjectStatistics object.
        Parameters:
        cols - Columns to remove.
        Returns:
        Cloned object without specified columns statistics.