本文整理匯總了Java中com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda.getBodyForge方法的典型用法代碼示例。如果您正苦於以下問題:Java ExprDotEvalParamLambda.getBodyForge方法的具體用法?Java ExprDotEvalParamLambda.getBodyForge怎麽用?Java ExprDotEvalParamLambda.getBodyForge使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.espertech.esper.epl.enummethod.dot.ExprDotEvalParamLambda
的用法示例。
在下文中一共展示了ExprDotEvalParamLambda.getBodyForge方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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]);
}
}
示例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);
}
示例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]);
}
示例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());
}
示例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]);
}
示例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());
}
示例7: 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());
}
示例8: 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]);
}
示例9: 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());
}
示例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);
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);
}
示例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) {
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]);
}
}
示例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) {
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());
}
示例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) {
if (bodiesAndParameters.isEmpty()) {
if (inputEventType != null) {
super.setTypeInfo(EPTypeHelper.singleEvent(inputEventType));
} else {
super.setTypeInfo(EPTypeHelper.singleValue(collectionComponentType));
}
if (this.getEnumMethodEnum() == EnumMethodEnum.FIRST) {
return new EnumFirstOfNoPredicateForge(numStreamsIncoming, super.getTypeInfo());
} else {
return new EnumLastOfNoPredicateForge(numStreamsIncoming, super.getTypeInfo());
}
}
ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
if (inputEventType != null) {
super.setTypeInfo(EPTypeHelper.singleEvent(inputEventType));
if (this.getEnumMethodEnum() == EnumMethodEnum.FIRST) {
return new EnumFirstOfPredicateEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
} else {
return new EnumLastOfPredicateEventsForge(first.getBodyForge(), first.getStreamCountIncoming());
}
}
super.setTypeInfo(EPTypeHelper.singleValue(collectionComponentType));
if (this.getEnumMethodEnum() == EnumMethodEnum.FIRST) {
return new EnumFirstOfPredicateScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0], super.getTypeInfo());
} else {
return new EnumLastOfPredicateScalarForge(first.getBodyForge(), first.getStreamCountIncoming(), (ObjectArrayEventType) first.getGoesToTypes()[0], super.getTypeInfo());
}
}