Beispiel #1
0
        public object GetValue(AggregationState aggregationState, EvaluateParams evalParams)
        {
            object value = _evaluator.Evaluate(new EvaluateParams(evalParams.EventsPerStream, true, evalParams.ExprEvaluatorContext));
            CountMinSketchAggState state = (CountMinSketchAggState)aggregationState;

            return(state.Frequency(value));
        }
        public object GetValue(AggregationState aggregationState, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext)
        {
            object value = evaluator.Evaluate(new EvaluateParams(eventsPerStream, true, exprEvaluatorContext));
            CountMinSketchAggState state = (CountMinSketchAggState)aggregationState;

            return(state.Frequency(value));
        }