public override Object Evaluate(long startTs, long endTs, Object parameterStartTs, Object parameterEndTs, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext context) { return(IntervalComputer.Compute( startTs, endTs, parameterStartTs.AsDateTimeOffset().TimeInMillis(), parameterEndTs.AsDateTimeOffset().TimeInMillis(), eventsPerStream, isNewData, context)); }
public override Object Evaluate(long startTs, long endTs, Object parameter, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext context) { var time = ((long?)parameter).GetValueOrDefault(); return(IntervalComputer.Compute(startTs, endTs, time, time, eventsPerStream, isNewData, context)); }
public override Object Evaluate(long startTs, long endTs, Object parameter, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext context) { var time = ((DateTimeEx)parameter).TimeInMillis; return(IntervalComputer.Compute(startTs, endTs, time, time, eventsPerStream, isNewData, context)); }