public class MinByLengthWindowProcessor extends MaxByMinByLengthWindowProcessor
from inputStream#window.minbymaxby:minByLengthBatch(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 min value. According to the given attribute it will give event which holds the minimum value.
minByMaxByExecutorType| Constructor and Description |
|---|
MinByLengthWindowProcessor() |
compileCondition, currentState, find, getParameterValue, init, process, restoreState, setOutputStreamEvent, start, stopinit, processEventChunkCopyright © 2017 WSO2. All rights reserved.