public class MaxByMinByExecutor extends Object
| Constructor and Description |
|---|
MaxByMinByExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.siddhi.core.event.stream.StreamEvent |
getMaxEventBatchProcessor(org.wso2.siddhi.core.event.stream.StreamEvent currentEvent,
org.wso2.siddhi.core.event.stream.StreamEvent oldEvent,
org.wso2.siddhi.core.executor.ExpressionExecutor maxByAttribute)
Retrun the maximum event comparing two events
|
String |
getMinByMaxByExecutorType() |
static org.wso2.siddhi.core.event.stream.StreamEvent |
getMinEventBatchProcessor(org.wso2.siddhi.core.event.stream.StreamEvent currentEvent,
org.wso2.siddhi.core.event.stream.StreamEvent oldEvent,
org.wso2.siddhi.core.executor.ExpressionExecutor minByAttribute)
Return the minimum event comparing two events
|
org.wso2.siddhi.core.event.stream.StreamEvent |
getResult(String functionType)
To find the event which holds minimum or maximum value of given parameter.
|
TreeMap<Object,org.wso2.siddhi.core.event.stream.StreamEvent> |
getSortedEventMap() |
void |
insert(org.wso2.siddhi.core.event.stream.StreamEvent clonedStreamEvent,
Object parameterValue)
To insert the current event into treemap .
|
void |
setMinByMaxByExecutorType(String minByMaxByExecutorType) |
void |
setSortedEventMap(TreeMap<Object,org.wso2.siddhi.core.event.stream.StreamEvent> sortedEventMap) |
public TreeMap<Object,org.wso2.siddhi.core.event.stream.StreamEvent> getSortedEventMap()
public void setSortedEventMap(TreeMap<Object,org.wso2.siddhi.core.event.stream.StreamEvent> sortedEventMap)
public String getMinByMaxByExecutorType()
public void setMinByMaxByExecutorType(String minByMaxByExecutorType)
public void insert(org.wso2.siddhi.core.event.stream.StreamEvent clonedStreamEvent,
Object parameterValue)
clonedStreamEvent - copy of current eventparameterValue - key for the treemap(object which holds the parameter value)public org.wso2.siddhi.core.event.stream.StreamEvent getResult(String functionType)
functionType - MIN/MAXpublic static org.wso2.siddhi.core.event.stream.StreamEvent getMinEventBatchProcessor(org.wso2.siddhi.core.event.stream.StreamEvent currentEvent,
org.wso2.siddhi.core.event.stream.StreamEvent oldEvent,
org.wso2.siddhi.core.executor.ExpressionExecutor minByAttribute)
currentEvent - new eventoldEvent - the previous event that is stored as the minimun eventminByAttribute - the attribute which the comparison is done.public static org.wso2.siddhi.core.event.stream.StreamEvent getMaxEventBatchProcessor(org.wso2.siddhi.core.event.stream.StreamEvent currentEvent,
org.wso2.siddhi.core.event.stream.StreamEvent oldEvent,
org.wso2.siddhi.core.executor.ExpressionExecutor maxByAttribute)
currentEvent - new eventoldEvent - the previous event that is stored as the maximum eventmaxByAttribute - the attribute which the comparison is done.Copyright © 2017 WSO2. All rights reserved.