Could someone please provide an example of using a window iterator within a Flex Script?
I would like to create an iterator, so that once window size hits 100 (the jumping window), I can output each record to an output stream.
The following is not producing any records in the output stream.
CREATE WINDOW Win1 schema Schema1
KEEP EVERY 100 ROWS;
CREATE Flex CreateWindowFlex
IN Win1
OUT OUTPUT STREAM Out1
DECLARE
END;
ON (Win1)
typeof(Win1) record;
record := getNext(Win1_iterator);
while (not(isnull(record))){
output setOpcode(record, insert); // note record at index 0 is
record := getNext(Win1_iterator);
}
};
END;
Thanks
Ilana