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


Java ExprDotEvalParam類代碼示例

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


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

示例1: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的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.ExprDotEvalParam; //導入依賴的package包/類
public EnumEval getEnumEval(EventAdapterService eventAdapterService, StreamTypeService streamTypeService, String statementId, String enumMethodUsedName, List<ExprDotEvalParam> bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming) {
    ExprEvaluator sizeEval = bodiesAndParameters.get(0).getBodyEvaluator();
    
    if (inputEventType != null) {
        super.setTypeInfo(ExprDotEvalTypeInfo.eventColl(inputEventType));
    }
    else {
        super.setTypeInfo(ExprDotEvalTypeInfo.componentColl(collectionComponentType));
    }

    if (getEnumMethodEnum() == EnumMethodEnum.TAKE) {
        return new EnumEvalTake(sizeEval, numStreamsIncoming);
    }
    else {
        return new EnumEvalTakeLast(sizeEval, numStreamsIncoming);
    }
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:18,代碼來源:ExprDotEvalTakeAndTakeLast.java

示例9: getAddStreamTypes

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的package包/類
public EventType[] getAddStreamTypes(String enumMethodUsedName, List<String> goesToNames, EventType inputEventType, Class collectionComponentType, List<ExprDotEvalParam> bodiesAndParameters) {
    EventType firstParamType;
    if (inputEventType == null) {
        firstParamType = ExprDotNodeUtility.makeTransientOAType(enumMethodUsedName, goesToNames.get(0), collectionComponentType);
    }
    else {
        firstParamType = inputEventType;
    }

    if (goesToNames.size() == 1) {
        return new EventType[] {firstParamType};
    }

    ObjectArrayEventType indexEventType = ExprDotNodeUtility.makeTransientOAType(enumMethodUsedName, goesToNames.get(1), int.class);
    return new EventType[]{firstParamType, indexEventType};
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:17,代碼來源:ExprDotEvalWhere.java

示例10: getEnumEval

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的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

示例11: getEnumEval

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的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

示例12: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的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

示例13: getAddStreamTypes

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的package包/類
public EventType[] getAddStreamTypes(String enumMethodUsedName, List<String> goesToNames, EventType inputEventType, Class collectionComponentType, List<ExprDotEvalParam> bodiesAndParameters, EventAdapterService eventAdapterService) {
    EventType firstParamType;
    if (inputEventType == null) {
        firstParamType = ExprDotNodeUtility.makeTransientOAType(enumMethodUsedName, goesToNames.get(0), collectionComponentType, eventAdapterService);
    } else {
        firstParamType = inputEventType;
    }

    if (goesToNames.size() == 1) {
        return new EventType[]{firstParamType};
    }

    ObjectArrayEventType indexEventType = ExprDotNodeUtility.makeTransientOAType(enumMethodUsedName, goesToNames.get(1), int.class, eventAdapterService);
    return new EventType[]{firstParamType, indexEventType};
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:16,代碼來源:ExprDotForgeTakeWhileAndLast.java

示例14: getEnumForge

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的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

示例15: getAddStreamTypes

import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam; //導入依賴的package包/類
public EventType[] getAddStreamTypes(String enumMethodUsedName, List<String> goesToNames, EventType inputEventType, Class collectionComponentType, List<ExprDotEvalParam> bodiesAndParameters, EventAdapterService eventAdapterService) {
    EventType evalEventType;
    if (inputEventType == null) {
        evalEventType = ExprDotNodeUtility.makeTransientOAType(enumMethodUsedName, goesToNames.get(1), collectionComponentType, eventAdapterService);
    } else {
        evalEventType = inputEventType;
    }

    Class initializationType = bodiesAndParameters.get(0).getBodyForge().getEvaluationType();
    EventType typeResult = ExprDotNodeUtility.makeTransientOAType(enumMethodUsedName, goesToNames.get(0), initializationType, eventAdapterService);

    return new EventType[]{typeResult, evalEventType};
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:14,代碼來源:ExprDotForgeAggregate.java


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