當前位置: 首頁>>代碼示例>>Java>>正文


Java ExprDotEvalParamLambda類代碼示例

本文整理匯總了Java中com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda的典型用法代碼示例。如果您正苦於以下問題:Java ExprDotEvalParamLambda類的具體用法?Java ExprDotEvalParamLambda怎麽用?Java ExprDotEvalParamLambda使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ExprDotEvalParamLambda類屬於com.espertech.esper.epl.enummethod.dot包,在下文中一共展示了ExprDotEvalParamLambda類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    ExprDotEvalParam initValueParam = bodiesAndParameters.get(0);
    ExprForge initValueEval = initValueParam.getBodyForge();
    super.setTypeInfo(EPTypeHelper.singleValue(JavaClassHelper.getBoxedType(initValueEval.getEvaluationType())));

    ExprDotEvalParamLambda resultAndAdd = (ExprDotEvalParamLambda) bodiesAndParameters.get(1);

    if (inputEventType != null) {
        return new EnumAggregateEventsForge(initValueEval,
                resultAndAdd.getBodyForge(), resultAndAdd.getStreamCountIncoming(),
                (ObjectArrayEventType) resultAndAdd.getGoesToTypes()[0]);
    } else {
        return new EnumAggregateScalarForge(initValueEval,
                resultAndAdd.getBodyForge(), resultAndAdd.getStreamCountIncoming(),
                (ObjectArrayEventType) resultAndAdd.getGoesToTypes()[0],
                (ObjectArrayEventType) resultAndAdd.getGoesToTypes()[1]);
    }
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:19,代碼來源:ExprDotForgeAggregate.java

示例2: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {

        boolean isDescending = this.getEnumMethodEnum() == EnumMethodEnum.ORDERBYDESC;

        if (bodiesAndParameters.isEmpty()) {
            super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(collectionComponentType));
            return new EnumOrderByAscDescScalarForge(numStreamsIncoming, isDescending);
        }

        ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
        if (inputEventType == null) {
            super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(collectionComponentType));
            return new EnumOrderByAscDescScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(), isDescending,
                    (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        super.setTypeInfo(EPTypeHelper.collectionOfEvents(inputEventType));
        return new EnumOrderByAscDescEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), isDescending);
    }
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:19,代碼來源:ExprDotForgeOrderByAscDesc.java

示例3: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {

        ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);

        if (inputEventType != null) {
            super.setTypeInfo(EPTypeHelper.collectionOfEvents(inputEventType));
            if (first.getGoesToNames().size() == 1) {
                return new EnumWhereEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
            }
            return new EnumWhereIndexEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[1]);
        }

        super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(collectionComponentType));
        if (first.getGoesToNames().size() == 1) {
            return new EnumWhereScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        return new EnumWhereScalarIndexForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0], (ObjectArrayEventType) first.getGoesToTypes()[1]);
    }
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:19,代碼來源:ExprDotForgeWhere.java

示例4: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    super.setTypeInfo(EPTypeHelper.singleValue(Map.class));
    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
    if (bodiesAndParameters.size() == 2) {
        ExprDotEvalParamLambda second = (ExprDotEvalParamLambda) bodiesAndParameters.get(1);
        if (inputEventType == null) {
            return new EnumGroupByKeyValueSelectorScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(), second.getBodyForge(),
                    (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        return new EnumGroupByKeyValueSelectorEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), second.getBodyForge());
    }
    if (inputEventType == null) {
        return new EnumGroupByKeySelectorScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(),
                (ObjectArrayEventType) first.getGoesToTypes()[0]);
    }
    return new EnumGroupByKeySelectorEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:18,代碼來源:ExprDotForgeGroupBy.java

示例5: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);

    super.setTypeInfo(EPTypeHelper.singleValue(Boolean.class));
    if (inputEventType != null) {
        if (super.getEnumMethodEnum() == EnumMethodEnum.ALLOF) {
            return new EnumAllOfEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
        }
        return new EnumAnyOfEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
    }

    if (super.getEnumMethodEnum() == EnumMethodEnum.ALLOF) {
        return new EnumAllOfScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
    }
    return new EnumAnyOfScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:17,代碼來源:ExprDotForgeAllOfAnyOf.java

示例6: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {

        if (bodiesAndParameters.isEmpty()) {
            super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(collectionComponentType));
            return new EnumDistinctScalarForge(numStreamsIncoming);
        }

        ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
        if (inputEventType == null) {
            super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(collectionComponentType));
            return new EnumDistinctScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(),
                    (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        super.setTypeInfo(EPTypeHelper.collectionOfEvents(inputEventType));
        return new EnumDistinctEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
    }
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:17,代碼來源:ExprDotForgeDistinct.java

示例7: getEnumEval

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumEval getEnumEval(EventAdapterService eventAdapterService, StreamTypeService streamTypeService, String statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming) {
    ExprDotEvalParam initValueParam = bodiesAndParameters.get(0);
    ExprEvaluator initValueEval = initValueParam.getBodyEvaluator();
    super.setTypeInfo(ExprDotEvalTypeInfo.scalarOrUnderlying(JavaClassHelper.getBoxedType(initValueEval.getType())));

    ExprDotEvalParamLambda resultAndAdd = (ExprDotEvalParamLambda) bodiesAndParameters.get(1);

    if (inputEventType != null) {
        return new EnumEvalAggregateEvents(initValueEval,
                resultAndAdd.getBodyEvaluator(), resultAndAdd.getStreamCountIncoming(),
                (ObjectArrayEventType) resultAndAdd.getGoesToTypes()[0]);
    }
    else {
        return new EnumEvalAggregateScalar(initValueEval,
                resultAndAdd.getBodyEvaluator(), resultAndAdd.getStreamCountIncoming(),
                (ObjectArrayEventType) resultAndAdd.getGoesToTypes()[0],
                (ObjectArrayEventType) resultAndAdd.getGoesToTypes()[1]);
    }
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:20,代碼來源:ExprDotEvalAggregate.java

示例8: getEnumEval

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumEval getEnumEval(EventAdapterService eventAdapterService, StreamTypeService streamTypeService, String statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming) {

        ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);

        if (inputEventType != null) {
            super.setTypeInfo(ExprDotEvalTypeInfo.eventColl(inputEventType));
            if (first.getGoesToNames().size() == 1) {
                return new EnumEvalWhereEvents(first.getBodyEvaluator(), first.getStreamCountIncoming());
            }
            return new EnumEvalWhereIndexEvents(first.getBodyEvaluator(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[1]);
        }

        super.setTypeInfo(ExprDotEvalTypeInfo.componentColl(collectionComponentType));
        if (first.getGoesToNames().size() == 1) {
            return new EnumEvalWhereScalar(first.getBodyEvaluator(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        return new EnumEvalWhereScalarIndex(first.getBodyEvaluator(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0], (ObjectArrayEventType) first.getGoesToTypes()[1]);
    }
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:19,代碼來源:ExprDotEvalWhere.java

示例9: getEnumEval

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumEval getEnumEval(EventAdapterService eventAdapterService, StreamTypeService streamTypeService, String statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming) {
    super.setTypeInfo(ExprDotEvalTypeInfo.scalarOrUnderlying(Map.class));
    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
    if (bodiesAndParameters.size() == 2) {
        ExprDotEvalParamLambda second = (ExprDotEvalParamLambda) bodiesAndParameters.get(1);
        if (inputEventType == null) {
            return new EnumEvalGroupByKeyValueSelectorScalarLambda(first.getBodyEvaluator(), first.getStreamCountIncoming(), second.getBodyEvaluator(),
                    (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        return new EnumEvalGroupByKeyValueSelectorEvents(first.getBodyEvaluator(), first.getStreamCountIncoming(), second.getBodyEvaluator());
    }
    if (inputEventType == null) {
        return new EnumEvalGroupByKeySelectorScalarLambda(first.getBodyEvaluator(), first.getStreamCountIncoming(),
                (ObjectArrayEventType) first.getGoesToTypes()[0]);
    }
    return new EnumEvalGroupByKeySelectorEvents(first.getBodyEvaluator(), first.getStreamCountIncoming());
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:18,代碼來源:ExprDotEvalGroupBy.java

示例10: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
    Class returnType = first.getBodyForge().getEvaluationType();
    super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(returnType));
    if (inputEventType == null) {
        return new EnumSelectFromScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(),
                (ObjectArrayEventType) first.getGoesToTypes()[0]);
    }
    return new EnumSelectFromEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:11,代碼來源:ExprDotForgeSelectFrom.java

示例11: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {

        ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);

        if (inputEventType != null) {
            super.setTypeInfo(EPTypeHelper.collectionOfEvents(inputEventType));
            if (first.getGoesToNames().size() == 1) {
                if (this.getEnumMethodEnum() == EnumMethodEnum.TAKEWHILELAST) {
                    return new EnumTakeWhileLastEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
                }
                return new EnumTakeWhileEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
            }

            if (this.getEnumMethodEnum() == EnumMethodEnum.TAKEWHILELAST) {
                return new EnumTakeWhileLastIndexEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[1]);
            }
            return new EnumTakeWhileIndexEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[1]);
        }

        super.setTypeInfo(EPTypeHelper.collectionOfSingleValue(collectionComponentType));
        if (first.getGoesToNames().size() == 1) {
            if (this.getEnumMethodEnum() == EnumMethodEnum.TAKEWHILELAST) {
                return new EnumTakeWhileLastScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
            }
            return new EnumTakeWhileScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }

        if (this.getEnumMethodEnum() == EnumMethodEnum.TAKEWHILELAST) {
            return new EnumTakeWhileLastIndexScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0], (ObjectArrayEventType) first.getGoesToTypes()[1]);
        }
        return new EnumTakeWhileIndexScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0], (ObjectArrayEventType) first.getGoesToTypes()[1]);
    }
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:33,代碼來源:ExprDotForgeTakeWhileAndLast.java

示例12: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    super.setTypeInfo(EPTypeHelper.singleValue(Map.class));
    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
    ExprDotEvalParamLambda second = (ExprDotEvalParamLambda) bodiesAndParameters.get(1);
    if (inputEventType == null) {
        return new EnumToMapScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(), second.getBodyForge(),
                (ObjectArrayEventType) first.getGoesToTypes()[0]);
    }
    return new EnumToMapEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), second.getBodyForge());
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:11,代碼來源:ExprDotForgeToMap.java

示例13: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);

    boolean max = this.getEnumMethodEnum() == EnumMethodEnum.MAXBY;
    if (inputEventType == null) {
        super.setTypeInfo(EPTypeHelper.singleValue(collectionComponentType));
        return new EnumMinMaxByScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(), max,
                (ObjectArrayEventType) first.getGoesToTypes()[0], super.getTypeInfo());
    }
    super.setTypeInfo(EPTypeHelper.singleEvent(inputEventType));
    return new EnumMinMaxByEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), max);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:13,代碼來源:ExprDotForgeMinByMaxBy.java

示例14: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {
    super.setTypeInfo(EPTypeHelper.singleValue(Integer.class));
    if (bodiesAndParameters.isEmpty()) {
        return new EnumCountOfForge(numStreamsIncoming);
    }

    ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
    if (inputEventType != null) {
        return new EnumCountOfSelectorEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
    } else {
        return new EnumCountOfSelectorScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0]);
    }
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:14,代碼來源:ExprDotForgeCountOf.java

示例15: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda; //導入依賴的package包/類
public EnumForge getEnumForge(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) {

        if (bodiesAndParameters.isEmpty()) {
            if (collectionComponentType == BigDecimal.class || collectionComponentType == BigInteger.class) {
                super.setTypeInfo(EPTypeHelper.singleValue(BigDecimal.class));
                return new EnumAverageBigDecimalScalarForge(numStreamsIncoming, engineImportService.getDefaultMathContext());
            }
            super.setTypeInfo(EPTypeHelper.singleValue(Double.class));
            return new EnumAverageScalarForge(numStreamsIncoming);
        }

        ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
        Class returnType = first.getBodyForge().getEvaluationType();

        if (returnType == BigDecimal.class || returnType == BigInteger.class) {
            super.setTypeInfo(EPTypeHelper.singleValue(BigDecimal.class));
            if (inputEventType == null) {
                return new EnumAverageBigDecimalScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(),
                        (ObjectArrayEventType) first.getGoesToTypes()[0], engineImportService.getDefaultMathContext());
            }
            return new EnumAverageBigDecimalEventsForge(first.getBodyForge(), first.getStreamCountIncoming(), engineImportService.getDefaultMathContext());
        }
        super.setTypeInfo(EPTypeHelper.singleValue(Double.class));
        if (inputEventType == null) {
            return new EnumAverageScalarLambdaForge(first.getBodyForge(), first.getStreamCountIncoming(),
                    (ObjectArrayEventType) first.getGoesToTypes()[0]);
        }
        return new EnumAverageEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
    }
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:30,代碼來源:ExprDotForgeAverage.java


注:本文中的com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。