public class MaxByLengthBatchWindowProcessor extends MaxByMinByLengthBatchWindowProcessor
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 the window should tumble 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 |
|---|
MaxByLengthBatchWindowProcessor() |
compileCondition, currentState, find, init, process, restoreState, start, stopinit, processEventChunkCopyright © 2017 WSO2. All rights reserved.