public class MaxByLengthWindowProcessor extends MaxByMinByLengthWindowProcessor
from inputStream#window.minbymaxby:maxByLengthBatch(attribute1, 4) select attribute1, attribute2 insert into outputStream;
Description: In the example query given, 4 is the number of events that need to should be in a sliding length window and attribute1 is the attribute that need to be compared to find the event which has max value. According to the given attribute it will give event which holds the maximum value.
minByMaxByExecutorType| Constructor and Description |
|---|
MaxByLengthWindowProcessor() |
compileCondition, currentState, find, getParameterValue, init, process, restoreState, setOutputStreamEvent, start, stopinit, processEventChunkCopyright © 2017 WSO2. All rights reserved.