com.espertech.esper.epl.join.exec.composite.CompositeAccessStrategyRangeInverted Maven / Gradle / Ivy
package com.espertech.esper.epl.join.exec.composite;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.epl.expression.ExprEvaluator;
import com.espertech.esper.epl.expression.ExprEvaluatorContext;
import com.espertech.esper.event.EventBeanUtility;
import java.util.*;
public class CompositeAccessStrategyRangeInverted extends CompositeAccessStrategyRangeBase implements CompositeAccessStrategy {
public CompositeAccessStrategyRangeInverted(boolean isNWOnTrigger, int lookupStream, int numStreams, ExprEvaluator start, boolean includeStart, ExprEvaluator end, boolean includeEnd, Class coercionType) {
super(isNWOnTrigger, lookupStream, numStreams, start, includeStart, end, includeEnd, coercionType);
}
public Set lookup(EventBean event, Map parent, Set result, CompositeIndexQuery next, ExprEvaluatorContext context) {
Object comparableStart = super.evaluateLookupStart(event, context);
if (comparableStart == null) {
return null;
}
Object comparableEnd = super.evaluateLookupEnd(event, context);
if (comparableEnd == null) {
return null;
}
comparableStart = EventBeanUtility.coerce(comparableStart, coercionType);
comparableEnd = EventBeanUtility.coerce(comparableEnd, coercionType);
TreeMap index = (TreeMap) parent;
SortedMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy