Data::EventStream::Window - Perl extension for event processing
This document describes Data::EventStream::Window version 0.13
This class represents time window for which aggregator aggregates data. Normally window objects are passed to aggregators' callbacks and user has no need to build them himself.
Create a new Window object. Data::EventStream will do it for you.
Number of events in the window
Window start time
Window end time
Set number of events in window to 0
Window length in time
Returns event with the specified index. 0 being the oldest, and -1 being the latest, most recent, event.
Returns callable iterator object. Each time you call it, it returns the next event starting from the oldest one. For example:
my $next_event = $win->get_iterator; while ( my $event = $next_event->() ) { ... }
To install Data::EventStream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::EventStream
CPAN shell
perl -MCPAN -e shell install Data::EventStream
For more information on module installation, please visit the detailed CPAN module installation guide.