예제 #1
0
 public object Evaluate(
     DateTimeOffset dateTimeOffset,
     EventBean[] eventsPerStream,
     bool newData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     return EvaluateInternal(DatetimeLongCoercerDateTimeOffset.CoerceToMillis(dateTimeOffset));
 }
예제 #2
0
 public override object Evaluate(
     object target,
     EventBean[] eventsPerStream,
     bool isNewData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     long time = DatetimeLongCoercerDateTimeOffset.CoerceToMillis((DateTimeOffset) target);
     return intervalOp.Evaluate(time, time, eventsPerStream, isNewData, exprEvaluatorContext);
 }
예제 #3
0
 public override object Evaluate(
     object target,
     EventBean[] eventsPerStream,
     bool isNewData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     var dto = (DateTimeOffset) target;
     dto = EvaluateCalOpsDto(calendarOps, dto, eventsPerStream, isNewData, exprEvaluatorContext);
     var time = DatetimeLongCoercerDateTimeOffset.CoerceToMillis(dto);
     return intervalOp.Evaluate(time, time, eventsPerStream, isNewData, exprEvaluatorContext);
 }
예제 #4
0
 public override object Evaluate(
     object startTimestamp,
     object endTimestamp,
     EventBean[] eventsPerStream,
     bool isNewData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     long start = DatetimeLongCoercerDateTimeOffset.CoerceToMillis((DateTimeOffset) startTimestamp);
     long end = DatetimeLongCoercerDateTimeOffset.CoerceToMillis((DateTimeOffset) endTimestamp);
     return intervalOp.Evaluate(start, end, eventsPerStream, isNewData, exprEvaluatorContext);
 }
예제 #5
0
 public override object Evaluate(
     long startTs,
     long endTs,
     object parameter,
     EventBean[] eventsPerStream,
     bool isNewData,
     ExprEvaluatorContext context)
 {
     var time = DatetimeLongCoercerDateTimeOffset.CoerceToMillis((DateTimeOffset) parameter);
     return intervalComputer.Compute(startTs, endTs, time, time, eventsPerStream, isNewData, context);
 }
예제 #6
0
 public override object Evaluate(
     object startTimestamp,
     object endTimestamp,
     EventBean[] eventsPerStream,
     bool isNewData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     var start = (DateTimeOffset) startTimestamp;
     var end = (DateTimeOffset) endTimestamp;
     var deltaMSec = DatetimeLongCoercerDateTimeOffset.CoerceToMillis(end) -
                     DatetimeLongCoercerDateTimeOffset.CoerceToMillis(start);
     var result = EvaluateCalOpsDto(calendarOps, start, eventsPerStream, isNewData, exprEvaluatorContext);
     var startLong = DatetimeLongCoercerDateTimeOffset.CoerceToMillis(result);
     var endTime = startLong + deltaMSec;
     return intervalOp.Evaluate(startLong, endTime, eventsPerStream, isNewData, exprEvaluatorContext);
 }