Esempio n. 1
0
        public static IList <HistogramItem> GetHistogram <T>(this AggregationsHelper aggs,
                                                             Expression <Func <T, Object> > fieldGetter)
        {
            var histogramItem = aggs.Histogram(GetName(fieldGetter));

            return(histogramItem.Items);
        }
Esempio n. 2
0
        public static IReadOnlyCollection <KeyedBucket <double> > GetHistogram <T>(this AggregationsHelper aggs,
                                                                                   Expression <Func <T, Object> > fieldGetter)
        {
            var histogramItem = aggs.Histogram(GetName(fieldGetter));

            return(histogramItem.Buckets);
        }