forked from apache/hop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional metadata injection sample. apache#2237
- Loading branch information
Showing
4 changed files
with
835 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
plugins/transforms/metainject/src/main/samples/files/person-info-1.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
First name,Last name,Address,Email,Country,Zip | ||
Ralph,Padilla,"571-1430 Vulputate, Rd.",[email protected],Chile,35528 | ||
Colton,Cobb,3010 Ligula. Av.,[email protected],Austria,9351-5888 | ||
Orlando,Sheppard,622-8030 Litora St.,[email protected],Russian Federation,134388 | ||
Fiona,Fleming,Ap #913-8067 Sociis Rd.,[email protected],Austria,28748 | ||
Tatum,Chen,"P.O. Box 390, 3345 Eleifend Av.",[email protected],Austria,28555 |
6 changes: 6 additions & 0 deletions
6
plugins/transforms/metainject/src/main/samples/files/person-info-2.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Street Address 1,Country Name,Postal/Zip,Name Last,Name First,Email Address,Day Of Birth | ||
Ap #253-2158 Iaculis Av.,South Africa,54760,Barry,Elton,[email protected],1993-08-13 | ||
Ap #143-6408 Id Rd.,Netherlands,54655,Hodge,Gray,[email protected],1984-06-10 | ||
9730 Mi St.,Philippines,423468,Hicks,Zenaida,[email protected],1972-04-12 | ||
Ap #335-4745 Eu Street,Nigeria,6011,Vargas,Pamela,[email protected],2001-07-26 | ||
Ap #669-7751 Placerat Avenue,Costa Rica,5424,Jennings,Rhoda,[email protected],1989-01-22 |
203 changes: 203 additions & 0 deletions
203
...sforms/metainject/src/main/samples/metadata-injection/process-files-with-mdi-template.hpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<pipeline> | ||
<info> | ||
<name>template-file-input</name> | ||
<name_sync_with_filename>Y</name_sync_with_filename> | ||
<description/> | ||
<extended_description/> | ||
<pipeline_version/> | ||
<pipeline_type>Normal</pipeline_type> | ||
<parameters> | ||
</parameters> | ||
<capture_transform_performance>N</capture_transform_performance> | ||
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay> | ||
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit> | ||
<created_user>-</created_user> | ||
<created_date>2024/05/07 09:54:50.069</created_date> | ||
<modified_user>-</modified_user> | ||
<modified_date>2024/05/07 09:54:50.069</modified_date> | ||
</info> | ||
<notepads> | ||
</notepads> | ||
<order> | ||
<hop> | ||
<from>Text file input</from> | ||
<to>Select values</to> | ||
<enabled>Y</enabled> | ||
</hop> | ||
<hop> | ||
<from>Select values</from> | ||
<to>Text file output</to> | ||
<enabled>Y</enabled> | ||
</hop> | ||
</order> | ||
<transform> | ||
<name>Select values</name> | ||
<type>SelectValues</type> | ||
<description/> | ||
<distribute>Y</distribute> | ||
<custom_distribution/> | ||
<copies>1</copies> | ||
<partitioning> | ||
<method>none</method> | ||
<schema_name/> | ||
</partitioning> | ||
<fields> | ||
<select_unspecified>N</select_unspecified> | ||
</fields> | ||
<attributes/> | ||
<GUI> | ||
<xloc>464</xloc> | ||
<yloc>176</yloc> | ||
</GUI> | ||
</transform> | ||
<transform> | ||
<name>Text file input</name> | ||
<type>TextFileInput2</type> | ||
<description/> | ||
<distribute>Y</distribute> | ||
<custom_distribution/> | ||
<copies>1</copies> | ||
<partitioning> | ||
<method>none</method> | ||
<schema_name/> | ||
</partitioning> | ||
<accept_filenames>N</accept_filenames> | ||
<passing_through_fields>N</passing_through_fields> | ||
<accept_field/> | ||
<accept_transform_name/> | ||
<separator>;</separator> | ||
<enclosure>"</enclosure> | ||
<enclosure_breaks>N</enclosure_breaks> | ||
<escapechar/> | ||
<header>Y</header> | ||
<nr_headerlines>1</nr_headerlines> | ||
<footer>N</footer> | ||
<nr_footerlines>1</nr_footerlines> | ||
<line_wrapped>N</line_wrapped> | ||
<nr_wraps>1</nr_wraps> | ||
<layout_paged>N</layout_paged> | ||
<nr_lines_per_page>80</nr_lines_per_page> | ||
<nr_lines_doc_header>0</nr_lines_doc_header> | ||
<noempty>Y</noempty> | ||
<include>N</include> | ||
<include_field/> | ||
<rownum>N</rownum> | ||
<rownumByFile>N</rownumByFile> | ||
<rownum_field/> | ||
<format>mixed</format> | ||
<encoding/> | ||
<length/> | ||
<add_to_result_filenames>Y</add_to_result_filenames> | ||
<file> | ||
<type>CSV</type> | ||
<compression>None</compression> | ||
</file> | ||
<filters> | ||
</filters> | ||
<fields> | ||
</fields> | ||
<limit>0</limit> | ||
<error_ignored>N</error_ignored> | ||
<skip_bad_files>N</skip_bad_files> | ||
<file_error_field/> | ||
<file_error_message_field/> | ||
<error_line_skipped>N</error_line_skipped> | ||
<error_count_field/> | ||
<error_fields_field/> | ||
<error_text_field/> | ||
<schema_definition/> | ||
<bad_line_files_destination_directory/> | ||
<bad_line_files_extension>warning</bad_line_files_extension> | ||
<error_line_files_destination_directory/> | ||
<error_line_files_extension>error</error_line_files_extension> | ||
<line_number_files_destination_directory/> | ||
<line_number_files_extension>line</line_number_files_extension> | ||
<date_format_lenient>Y</date_format_lenient> | ||
<date_format_locale>en_US</date_format_locale> | ||
<shortFileFieldName/> | ||
<pathFieldName/> | ||
<hiddenFieldName/> | ||
<lastModificationTimeFieldName/> | ||
<uriNameFieldName/> | ||
<rootUriNameFieldName/> | ||
<extensionFieldName/> | ||
<sizeFieldName/> | ||
<attributes/> | ||
<GUI> | ||
<xloc>256</xloc> | ||
<yloc>176</yloc> | ||
</GUI> | ||
</transform> | ||
<transform> | ||
<name>Text file output</name> | ||
<type>TextFileOutput</type> | ||
<description/> | ||
<distribute>Y</distribute> | ||
<custom_distribution/> | ||
<copies>1</copies> | ||
<partitioning> | ||
<method>none</method> | ||
<schema_name/> | ||
</partitioning> | ||
<schema_definition/> | ||
<separator>;</separator> | ||
<enclosure>"</enclosure> | ||
<enclosure_forced>N</enclosure_forced> | ||
<enclosure_fix_disabled>N</enclosure_fix_disabled> | ||
<header>Y</header> | ||
<footer>N</footer> | ||
<format>DOS</format> | ||
<compression>None</compression> | ||
<encoding/> | ||
<endedLine/> | ||
<fileNameInField>N</fileNameInField> | ||
<fileNameField/> | ||
<create_parent_folder>Y</create_parent_folder> | ||
<file> | ||
<name>file</name> | ||
<servlet_output>N</servlet_output> | ||
<do_not_open_new_file_init>Y</do_not_open_new_file_init> | ||
<extention>txt</extention> | ||
<append>N</append> | ||
<split>N</split> | ||
<haspartno>N</haspartno> | ||
<add_date>N</add_date> | ||
<add_time>N</add_time> | ||
<SpecifyFormat>N</SpecifyFormat> | ||
<date_time_format/> | ||
<add_to_result_filenames>Y</add_to_result_filenames> | ||
<pad>N</pad> | ||
<fast_dump>N</fast_dump> | ||
<splitevery/> | ||
</file> | ||
<fields> | ||
</fields> | ||
<attributes/> | ||
<GUI> | ||
<xloc>672</xloc> | ||
<yloc>176</yloc> | ||
</GUI> | ||
</transform> | ||
<transform_error_handling> | ||
</transform_error_handling> | ||
<attributes/> | ||
</pipeline> |
Oops, something went wrong.