NAME
Data::AnyXfer::Elastic::Import::Utils::Buffer - Buffer class
|
DESCRIPTION
This module provides methods for buffer action
|
SYNOPSIS
my $buffer = Data::AnyXfer::Elastic::Import::Utils::Buffer->new(
callback => $sub );
$buffer -> push ( @data );
$buffer ->flush();
|
ATTRIBUTES
max_size
size of the buffer, default is 200
|
callback
$callback ->( @data_entries );
callback function which will process the data once the buffer
has been filled
|
push
$buffer -> push ( @data );
pushes data to buffer
|
flush
$buffer ->flush();
passes data to callback and clears buffer
|
COPYRIGHT
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.