Stream::AggregateGenerate aggregate information from a stream of data | |
Download |
Stream::Aggregate Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- David Sharnoff
- Publisher web site:
- http://search.cpan.org/~muir/
Stream::Aggregate Tags
Stream::Aggregate Description
Generate aggregate information from a stream of data Stream::Aggregate is a general-purpose aggregation Perl module that will aggregate from a stream of perl objects. While it was written specifically for log processing, it can be used for other things too.Aggregation has two key elements: how you group things and what you aggregate. This module understands two different ways to group things: nested and cross-product.Nested groupings come from processing sorted input: if you have three fields you are considering your context, the order in which the data is sorted must match the order in which these fields make up your context. If you want to count things by URL, then you must sort your input by URL.Cross-product groupings come from processing unsorted input. Each combination of values of the fields that make up your context is another context. This can lead to memory exhaustion so you must specify the maximum number of values for each of the fields.SYNOPSIS use Stream::Aggregate; my $af = generate_aggregation_func( $agg_config, $extra_parameters, $user_extra_parameters); while ($log = ???) { @stats = $af->($log); } @stats = $af->(undef); Requirements: · Perl
Stream::Aggregate Related Software