Example #1
0
 public EnumMinMaxEvent(
     ExprDotEvalParamLambda lambda,
     bool max) : base(lambda)
 {
     _max            = max;
     _innerTypeBoxed = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #2
0
 public EnumCountOfScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType resultEventType,
     int numParameters)
     : base(lambda, resultEventType, numParameters)
 {
 }
Example #3
0
 public EnumWhereScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters)
     : base(lambda, fieldEventType, numParameters)
 {
 }
Example #4
0
 public EnumMinMaxByEvents(
     ExprDotEvalParamLambda lambda,
     bool max) : base(lambda)
 {
     this._max            = max;
     this._innerTypeBoxed = Boxing.GetBoxedType(InnerExpression.EvaluationType);
 }
Example #5
0
 public EnumMostLeastFrequentEvent(
     ExprDotEvalParamLambda lambda,
     bool mostFrequent) : base(lambda)
 {
     _isMostFrequent = mostFrequent;
     _returnType     = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #6
0
 public EnumOrderByEvent(
     ExprDotEvalParamLambda lambda,
     bool descending) : base(lambda)
 {
     _descending     = descending;
     _innerBoxedType = InnerExpression.EvaluationType.GetBoxedType();
 }
 protected override EnumForge MakeForgeWithParam(
     ExprDotEvalParamLambda lambda,
     EPType typeInfo,
     StatementCompileTimeServices services)
 {
     return(function.Invoke(lambda, fieldType, numParameters, typeInfo, services));
 }
Example #8
0
 public EnumDistinctOfScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters) : base(lambda, fieldEventType, numParameters)
 {
     _innerType = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #9
0
 public EnumSumEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     ExprDotEvalSumMethodFactory sumMethodFactory) : base(lambda, indexEventType, numParameters)
 {
     this._sumMethodFactory = sumMethodFactory;
 }
Example #10
0
 public EnumSumScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     ExprDotEvalSumMethodFactory sumMethodFactory) : base(lambda, fieldEventType, numParameters)
 {
     this.sumMethodFactory = sumMethodFactory;
 }
Example #11
0
 public ThreeFormEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters)
     : base(lambda, indexEventType)
 {
     this.numParameters = numParameters;
 }
Example #12
0
 public EnumFirstOfScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     EPType columnType) : base(lambda, fieldEventType, numParameters)
 {
     this._columnType = columnType;
 }
Example #13
0
 public EnumLastOfScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     EPType resultType) : base(lambda, fieldEventType, numParameters)
 {
     _resultType = resultType;
 }
Example #14
0
 public EnumArrayOfEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     Type arrayComponentType)
     : base(lambda, indexEventType, numParameters)
 {
     this._arrayComponentType = arrayComponentType;
 }
Example #15
0
 public EnumOrderByEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     bool descending) : base(lambda, indexEventType, numParameters)
 {
     _descending     = descending;
     _innerBoxedType = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #16
0
 public EnumArrayOfScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     Type arrayComponentType)
     : base(lambda, fieldEventType, numParameters)
 {
     this.arrayComponentType = arrayComponentType;
 }
Example #17
0
 public ThreeFormScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters)
     : base(lambda)
 {
     this.fieldEventType = fieldEventType;
     this.numParameters  = numParameters;
 }
Example #18
0
 public EnumMinMaxScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     bool max) : base(lambda, fieldEventType, numParameters)
 {
     this.max            = max;
     this.innerTypeBoxed = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #19
0
 public EnumOrderByScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     bool descending) : base(lambda, fieldEventType, numParameters)
 {
     this.descending = descending;
     innerBoxedType  = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #20
0
 public EnumAllOfAnyOfEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     bool all)
     : base(lambda, indexEventType, numParameters)
 {
     this.all = all;
 }
Example #21
0
 public EnumMostLeastFrequentEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     bool isMostFrequent) : base(lambda, indexEventType, numParameters)
 {
     this._isMostFrequent = isMostFrequent;
     this._returnType     = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #22
0
 public EnumAllOfAnyOfScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType resultEventType,
     int numParameters,
     bool all)
     : base(lambda, resultEventType, numParameters)
 {
     this.all = all;
 }
Example #23
0
 public EnumMinMaxByEventsPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     bool max) : base(lambda, indexEventType, numParameters)
 {
     _max            = max;
     _innerTypeBoxed = InnerExpression.EvaluationType.GetBoxedType();
 }
Example #24
0
 public EnumMinMaxEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters,
     bool max) : base(lambda, indexEventType, numParameters)
 {
     this._max            = max;
     this._innerTypeBoxed = Boxing.GetBoxedType(InnerExpression.EvaluationType);
 }
        public EnumForgeDesc MakeEnumForgeDesc(
            IList <ExprDotEvalParam> bodiesAndParameters,
            int streamCountIncoming,
            StatementCompileTimeServices services)
        {
            ExprDotEvalParamLambda key   = (ExprDotEvalParamLambda)bodiesAndParameters[0];
            ExprDotEvalParamLambda value = (ExprDotEvalParamLambda)bodiesAndParameters[1];
            EnumForge forge = function.Invoke(key, value, streamCountIncoming, typeKey, typeValue, numParams, returnType, services);

            return(new EnumForgeDesc(returnType, forge));
        }
        public EnumForgeDesc MakeEnumForgeDesc(
            IList <ExprDotEvalParam> bodiesAndParameters,
            int streamCountIncoming,
            StatementCompileTimeServices services)
        {
            ExprDotEvalParamLambda first  = (ExprDotEvalParamLambda)bodiesAndParameters[0];
            ExprDotEvalParamLambda second = (ExprDotEvalParamLambda)bodiesAndParameters[1];
            EnumForge forge = function.Invoke(first, second, streamCountIncoming, returnType, services);

            return(new EnumForgeDesc(returnType, forge));
        }
Example #27
0
 public EnumMinMaxByScalar(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType fieldEventType,
     int numParameters,
     bool max,
     EPType resultType) : base(lambda, fieldEventType, numParameters)
 {
     this._max             = max;
     this._resultType      = resultType;
     this._innerTypeBoxed  = Boxing.GetBoxedType(InnerExpression.EvaluationType);
     this._resultTypeBoxed = Boxing.GetBoxedType(EPTypeHelper.GetCodegenReturnType(resultType));
 }
Example #28
0
        public EnumForgeDesc MakeEnumForgeDesc(
            IList <ExprDotEvalParam> bodiesAndParameters,
            int streamCountIncoming,
            StatementCompileTimeServices services)
        {
            if (bodiesAndParameters.IsEmpty())
            {
                throw new UnsupportedOperationException();
            }

            ExprDotEvalParamLambda first = (ExprDotEvalParamLambda)bodiesAndParameters[0];
            EPType    typeInfo           = _returnType.Invoke(first);
            EnumForge forge = MakeForgeWithParam(first, typeInfo, services);

            return(new EnumForgeDesc(typeInfo, forge));
        }
Example #29
0
        public override EnumEval GetEnumEval(MethodResolutionService methodResolutionService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, String statementId, String enumMethodUsedName, IList <ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Type collectionComponentType, int numStreamsIncoming, bool disablePropertyExpressionEventCollCache)
        {
            if (bodiesAndParameters.IsEmpty())
            {
                base.TypeInfo = EPTypeHelper.CollectionOfSingleValue(collectionComponentType);
                return(new EnumEvalDistinctScalar(numStreamsIncoming));
            }

            ExprDotEvalParamLambda first = (ExprDotEvalParamLambda)bodiesAndParameters[0];

            if (inputEventType == null)
            {
                base.TypeInfo = EPTypeHelper.CollectionOfSingleValue(collectionComponentType);
                return(new EnumEvalDistinctScalarLambda(first.BodyEvaluator, first.StreamCountIncoming,
                                                        (ObjectArrayEventType)first.GoesToTypes[0]));
            }
            base.TypeInfo = EPTypeHelper.CollectionOfEvents(inputEventType);
            return(new EnumEvalDistinctEvents(first.BodyEvaluator, first.StreamCountIncoming));
        }
Example #30
0
 public EnumFirstOfEventPlus(
     ExprDotEvalParamLambda lambda,
     ObjectArrayEventType indexEventType,
     int numParameters) : base(lambda, indexEventType, numParameters)
 {
 }