Data::AnyXfer::Elastic::Role::BucketSimplifier - simplify buckets
package MyPackage; use Moo; use MooX::Types::MooseLike::Base qw(:all); with 'Data::AnyXfer::Elastic::Role::BucketSimplifier';
This role provides a method for simplifying aggregated results.
Buckets are changed to hash references, where the keys are the keys to the bucket items.
aggregations_key
The top-level hash key that contains aggregated results. Defaults to "aggreations".
simplify_bucket
$data = $self->simplify_bucket( $res );
This software is copyright (c) 2019, Anthony Lucas.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::AnyXfer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::AnyXfer
CPAN shell
perl -MCPAN -e shell install Data::AnyXfer
For more information on module installation, please visit the detailed CPAN module installation guide.