本文整理汇总了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]);
}
}
示例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);
}
示例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]);
}
示例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());
}
示例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]);
}
示例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());
}
示例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]);
}
}
示例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);
}
}
示例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};
}
示例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]);
}
示例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());
}
示例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());
}
示例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};
}
示例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]);
}
示例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};
}