public object Evaluate( DateTime dateTime, EventBean[] eventsPerStream, bool newData, ExprEvaluatorContext exprEvaluatorContext) { return EvaluateInternal(DatetimeLongCoercerDateTime.CoerceToMillis(dateTime)); }
public override object Evaluate( object target, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext) { var time = DatetimeLongCoercerDateTime.CoerceToMillis((DateTime) target); return intervalOp.Evaluate(time, time, eventsPerStream, isNewData, exprEvaluatorContext); }
public override object Evaluate( object startTimestamp, object endTimestamp, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext) { var start = DatetimeLongCoercerDateTime.CoerceToMillis((DateTime) startTimestamp); var end = DatetimeLongCoercerDateTime.CoerceToMillis((DateTime) endTimestamp); return intervalOp.Evaluate(start, end, eventsPerStream, isNewData, exprEvaluatorContext); }
public override object Evaluate( long startTs, long endTs, object parameter, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext context) { var time = DatetimeLongCoercerDateTime.CoerceToMillis((DateTime) parameter); return intervalComputer.Compute(startTs, endTs, time, time, eventsPerStream, isNewData, context); }
public override object Evaluate( object startTimestamp, object endTimestamp, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext) { var start = (DateTime) startTimestamp; var end = (DateTime) endTimestamp; var deltaMSec = DatetimeLongCoercerDateTime.CoerceToMillis(end) - DatetimeLongCoercerDateTime.CoerceToMillis(start); var result = EvaluateCalOpsDateTime(calendarOps, start, eventsPerStream, isNewData, exprEvaluatorContext); var startLong = DatetimeLongCoercerDateTime.CoerceToMillis(result); var endTime = startLong + deltaMSec; return intervalOp.Evaluate(startLong, endTime, eventsPerStream, isNewData, exprEvaluatorContext); }