Example #1
0
        static ColumnStat PrestoFormatConvert(PrestoColumnStats stat_in, int nRows)
        {
            ColumnStat stat = new ColumnStat();

            stat.nullfrac_   = (double)stat_in.nullsCount / (double)nRows;
            stat.n_rows_     = (ulong)nRows;
            stat.n_distinct_ = (ulong)stat_in.distinctValuesCount;
            stat.mcv_        = null;
            stat.hist_       = null;

            return(stat);
        }
Example #2
0
        static ColumnStat PrestoFormatConvert(PrestoColumnStats stat_in, int nRows)
        {
            ColumnStat stat = new ColumnStat
            {
                nullfrac_   = (double)stat_in.nullsCount_ / (double)nRows,
                n_rows_     = (ulong)nRows,
                n_distinct_ = (ulong)stat_in.distinctValuesCount_,
                mcv_        = null,
                hist_       = null
            };

            return(stat);
        }