NAME
Data::AnyXfer::Elastic::Import::Storage::TarFile - Tar-based import storage
SYNOPSIS
my $storage =
Data::AnyXfer::Elastic::Import::Storage::TarFile->new(
file => Path::Class::file('myfile.tar') );
$storage->set(
company => 'Limited',
address =>
'Building One, Chiswick Park, 566 Chiswick High Road, London W4 5BE',
regno => 1680058,
);
$storage->save;
DESCRIPTION
This module implements Data::AnyXfer::Elastic::Import::Storage, based on Archive::Tar::File tar files.
The tar file is created on "save" in Data::AnyXfer::Elastic::Import::Storage.
It represents items as single files within the tar file, and can only store printable characters (i.e. any complex content should be serialised to a representable format before being passed to this module to store).
ATTRIBUTES
- file
-
Optional. The final file that data should be persisted to.
STORAGE INTERFACE
Please see Data::AnyXfer::Elastic::Import::Storage and Data::AnyXfer::Elastic::Import::Storage::Directory for the interface definition and information.
ADDITIONAL METHODS
get_fh
Shorthand for Path::Class::File::open
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.