com.espertech.esper.epl.enummethod.eval.ExprDotEvalSequenceEqual Maven / Gradle / Ivy
/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.epl.enummethod.eval;
import com.espertech.esper.client.EventType;
import com.espertech.esper.epl.core.EngineImportService;
import com.espertech.esper.epl.core.StreamTypeService;
import com.espertech.esper.epl.enummethod.dot.ExprDotEvalEnumMethodBase;
import com.espertech.esper.epl.enummethod.dot.ExprDotEvalParam;
import com.espertech.esper.epl.expression.core.ExprEvaluator;
import com.espertech.esper.epl.expression.core.ExprValidationException;
import com.espertech.esper.epl.rettype.EPTypeHelper;
import com.espertech.esper.event.EventAdapterService;
import java.util.List;
public class ExprDotEvalSequenceEqual extends ExprDotEvalEnumMethodBase {
public EventType[] getAddStreamTypes(String enumMethodUsedName, List goesToNames, EventType inputEventType, Class collectionComponentType, List bodiesAndParameters, EventAdapterService eventAdapterService) {
return new EventType[0];
}
public EnumEval getEnumEval(EngineImportService engineImportService, EventAdapterService eventAdapterService, StreamTypeService streamTypeService, int statementId, String enumMethodUsedName, List bodiesAndParameters, EventType inputEventType, Class collectionComponentType, int numStreamsIncoming, boolean disablePropertyExpressionEventCollCache) throws ExprValidationException {
super.setTypeInfo(EPTypeHelper.singleValue(Boolean.class));
ExprEvaluator body = bodiesAndParameters.get(0).getBodyEvaluator();
return new EnumEvalSequenceEqual(body, numStreamsIncoming);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy