NAME
Data::AnyXfer::To::Elasticsearch::DataFile - Transfer to Elasticsearch datafile
SYNOPSYS
package DbicToElasticsearchDataFile;
use Moo;
use MooX::Types::MooseLike::Base qw(:all);
extends 'Data::AnyXfer';
with 'Data::AnyXfer::From::DBIC';
with 'Data::AnyXfer::To::Elasticsearch::DataFile';
1;
DESCRIPTION
This role can be used to implement a Core::Elasticsearch::Import::DataFile AnyXfer target for AnyXfer subclasses.
ATTRIBUTES
index_info
Required. An instance of Data::AnyXfer::Elastic::Role::IndexInfo.
dir
Optional.
An instance of Path::Class::Dir, or a path STRING
. See "dir" in Data::AnyXfer::Elastic::Import::DataFile for more info.
file
Optional.
An instance of Path::Class::File, or a path STRING
. See "file" in Data::AnyXfer::Elastic::Import::DataFile for more info.
datafile
Readonly.
The datafile instance target. An instance of Data::AnyXfer::Elastic::Import::DataFile.
importer
Optional.
The importer that will be used to play / execute the datafile if "autoplay_datafile" in . is set, or "deploy" in . is called.
An instance of Data::AnyXfer::Elastic::Importer.
autoplay_datafile
Optional.
A boolean indicating whether this AnyXfer instance should execute / play the resulting datafile immediately when the import has finished, using "importer" in ., and "deploy" in Data::AnyXfer::Elastic::Importer.
Defaults to 0
.
datafile_part_size
Optional.
An integer used to control the maximum part-size for the datafile. See "part_size" in Data::AnyXfer::Elastic::Import::DataFile for more info.
datafile_buffer_size
Optional.
An integer used to control the maximum amount of buffered data before a write occurs. See "data_buffer_size" in Data::AnyXfer::Elastic::Import::DataFile for more info.
datafile_compress
Optional.
A boolean value used to apply compression to the datafile. See "compress" in Data::AnyXfer::Elastic::Import::DataFile for more info.
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.