embulk-filter-concat 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.idea/compiler.xml +26 -0
- data/.idea/copyright/profiles_settings.xml +3 -0
- data/.idea/gradle.xml +19 -0
- data/.idea/libraries/Gradle__aopalliance_aopalliance_1_0.xml +11 -0
- data/.idea/libraries/Gradle__ch_qos_logback_logback_classic_1_1_3.xml +11 -0
- data/.idea/libraries/Gradle__ch_qos_logback_logback_core_1_1_3.xml +11 -0
- data/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_annotations_2_5_3.xml +11 -0
- data/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_5_3.xml +11 -0
- data/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_databind_2_5_3.xml +11 -0
- data/.idea/libraries/Gradle__com_fasterxml_jackson_datatype_jackson_datatype_guava_2_5_3.xml +11 -0
- data/.idea/libraries/Gradle__com_fasterxml_jackson_datatype_jackson_datatype_joda_2_5_3.xml +11 -0
- data/.idea/libraries/Gradle__com_fasterxml_jackson_module_jackson_module_guice_2_5_3.xml +11 -0
- data/.idea/libraries/Gradle__com_google_code_findbugs_annotations_3_0_0.xml +11 -0
- data/.idea/libraries/Gradle__com_google_guava_guava_18_0.xml +11 -0
- data/.idea/libraries/Gradle__com_google_inject_extensions_guice_multibindings_4_0.xml +11 -0
- data/.idea/libraries/Gradle__com_google_inject_guice_4_0.xml +11 -0
- data/.idea/libraries/Gradle__com_ibm_icu_icu4j_54_1_1.xml +11 -0
- data/.idea/libraries/Gradle__commons_beanutils_commons_beanutils_core_1_8_3.xml +9 -0
- data/.idea/libraries/Gradle__io_airlift_slice_0_9.xml +11 -0
- data/.idea/libraries/Gradle__io_netty_netty_buffer_5_0_0_Alpha1.xml +11 -0
- data/.idea/libraries/Gradle__io_netty_netty_common_5_0_0_Alpha1.xml +11 -0
- data/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +11 -0
- data/.idea/libraries/Gradle__javax_validation_validation_api_1_1_0_Final.xml +11 -0
- data/.idea/libraries/Gradle__joda_time_joda_time_2_9_2.xml +11 -0
- data/.idea/libraries/Gradle__junit_junit_4_12.xml +11 -0
- data/.idea/libraries/Gradle__org_apache_bval_bval_core_0_5.xml +11 -0
- data/.idea/libraries/Gradle__org_apache_bval_bval_jsr303_0_5.xml +11 -0
- data/.idea/libraries/Gradle__org_apache_commons_commons_lang3_3_1.xml +11 -0
- data/.idea/libraries/Gradle__org_embulk_embulk_core_0_8_9.xml +11 -0
- data/.idea/libraries/Gradle__org_embulk_guice_bootstrap_0_1_1.xml +11 -0
- data/.idea/libraries/Gradle__org_fusesource_jansi_jansi_1_11.xml +11 -0
- data/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml +11 -0
- data/.idea/libraries/Gradle__org_jruby_jruby_complete_9_0_5_0.xml +11 -0
- data/.idea/libraries/Gradle__org_msgpack_msgpack_core_0_8_7.xml +11 -0
- data/.idea/libraries/Gradle__org_slf4j_slf4j_api_1_7_12.xml +11 -0
- data/.idea/libraries/Gradle__org_yaml_snakeyaml_1_14.xml +11 -0
- data/.idea/misc.xml +57 -0
- data/.idea/modules.xml +10 -0
- data/.idea/modules/embulk-filter-concat.iml +12 -0
- data/.idea/modules/embulk-filter-concat_main.iml +44 -0
- data/.idea/modules/embulk-filter-concat_test.iml +48 -0
- data/.idea/vcs.xml +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/build.gradle +96 -0
- data/classpath/embulk-filter-concat-0.1.0.jar +0 -0
- data/config/checkstyle/checkstyle.xml +128 -0
- data/config/checkstyle/default.xml +108 -0
- data/embulk-filter-concat.gemspec +19 -0
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/gradlew +160 -0
- data/gradlew.bat +90 -0
- data/lib/embulk/filter/concat.rb +3 -0
- data/src/main/java/org/embulk/filter/concat/ConcatFilterPlugin.java +169 -0
- data/src/test/java/org/embulk/filter/concat/TestConcatFilterPlugin.java +5 -0
- metadata +128 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
<component name="libraryTable">
|
2
|
+
<library name="Gradle: org.slf4j:slf4j-api:1.7.12">
|
3
|
+
<CLASSES>
|
4
|
+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.12/8e20852d05222dc286bf1c71d78d0531e177c317/slf4j-api-1.7.12.jar!/" />
|
5
|
+
</CLASSES>
|
6
|
+
<JAVADOC />
|
7
|
+
<SOURCES>
|
8
|
+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.12/58697792617f38bf86d8e26bc004aac505e516a9/slf4j-api-1.7.12-sources.jar!/" />
|
9
|
+
</SOURCES>
|
10
|
+
</library>
|
11
|
+
</component>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<component name="libraryTable">
|
2
|
+
<library name="Gradle: org.yaml:snakeyaml:1.14">
|
3
|
+
<CLASSES>
|
4
|
+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.14/c2df91929ed06a25001939929bff5120e0ea3fd4/snakeyaml-1.14.jar!/" />
|
5
|
+
</CLASSES>
|
6
|
+
<JAVADOC />
|
7
|
+
<SOURCES>
|
8
|
+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.14/4c6bcedc3efa772a5ae1c2fd01efee8e4d15edac/snakeyaml-1.14-sources.jar!/" />
|
9
|
+
</SOURCES>
|
10
|
+
</library>
|
11
|
+
</component>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ClientPropertiesManager">
|
4
|
+
<properties class="javax.swing.AbstractButton">
|
5
|
+
<property name="hideActionText" class="java.lang.Boolean" />
|
6
|
+
</properties>
|
7
|
+
<properties class="javax.swing.JComponent">
|
8
|
+
<property name="html.disable" class="java.lang.Boolean" />
|
9
|
+
</properties>
|
10
|
+
<properties class="javax.swing.JEditorPane">
|
11
|
+
<property name="JEditorPane.w3cLengthUnits" class="java.lang.Boolean" />
|
12
|
+
<property name="JEditorPane.honorDisplayProperties" class="java.lang.Boolean" />
|
13
|
+
<property name="charset" class="java.lang.String" />
|
14
|
+
</properties>
|
15
|
+
<properties class="javax.swing.JList">
|
16
|
+
<property name="List.isFileList" class="java.lang.Boolean" />
|
17
|
+
</properties>
|
18
|
+
<properties class="javax.swing.JPasswordField">
|
19
|
+
<property name="JPasswordField.cutCopyAllowed" class="java.lang.Boolean" />
|
20
|
+
</properties>
|
21
|
+
<properties class="javax.swing.JSlider">
|
22
|
+
<property name="Slider.paintThumbArrowShape" class="java.lang.Boolean" />
|
23
|
+
<property name="JSlider.isFilled" class="java.lang.Boolean" />
|
24
|
+
</properties>
|
25
|
+
<properties class="javax.swing.JTable">
|
26
|
+
<property name="Table.isFileList" class="java.lang.Boolean" />
|
27
|
+
<property name="JTable.autoStartsEdit" class="java.lang.Boolean" />
|
28
|
+
<property name="terminateEditOnFocusLost" class="java.lang.Boolean" />
|
29
|
+
</properties>
|
30
|
+
<properties class="javax.swing.JToolBar">
|
31
|
+
<property name="JToolBar.isRollover" class="java.lang.Boolean" />
|
32
|
+
</properties>
|
33
|
+
<properties class="javax.swing.JTree">
|
34
|
+
<property name="JTree.lineStyle" class="java.lang.String" />
|
35
|
+
</properties>
|
36
|
+
<properties class="javax.swing.text.JTextComponent">
|
37
|
+
<property name="caretAspectRatio" class="java.lang.Double" />
|
38
|
+
<property name="caretWidth" class="java.lang.Integer" />
|
39
|
+
</properties>
|
40
|
+
</component>
|
41
|
+
<component name="EntryPointsManager">
|
42
|
+
<entry_points version="2.0" />
|
43
|
+
</component>
|
44
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
45
|
+
<OptionsSetting value="true" id="Add" />
|
46
|
+
<OptionsSetting value="true" id="Remove" />
|
47
|
+
<OptionsSetting value="true" id="Checkout" />
|
48
|
+
<OptionsSetting value="true" id="Update" />
|
49
|
+
<OptionsSetting value="true" id="Status" />
|
50
|
+
<OptionsSetting value="true" id="Edit" />
|
51
|
+
<ConfirmationsSetting value="0" id="Add" />
|
52
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
53
|
+
</component>
|
54
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
55
|
+
<output url="file://$PROJECT_DIR$/classes" />
|
56
|
+
</component>
|
57
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/modules/embulk-filter-concat.iml" filepath="$PROJECT_DIR$/.idea/modules/embulk-filter-concat.iml" />
|
6
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/modules/embulk-filter-concat_main.iml" filepath="$PROJECT_DIR$/.idea/modules/embulk-filter-concat_main.iml" group="embulk-filter-concat" />
|
7
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/modules/embulk-filter-concat_test.iml" filepath="$PROJECT_DIR$/.idea/modules/embulk-filter-concat_test.iml" group="embulk-filter-concat" />
|
8
|
+
</modules>
|
9
|
+
</component>
|
10
|
+
</project>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module external.linked.project.id="embulk-filter-concat" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="" external.system.module.version="0.1.0" type="JAVA_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$/../..">
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/../../.gradle" />
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/../../build" />
|
8
|
+
</content>
|
9
|
+
<orderEntry type="inheritedJdk" />
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
+
</component>
|
12
|
+
</module>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module external.linked.project.id="embulk-filter-concat:main" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="" external.system.module.type="sourceSet" external.system.module.version="0.1.0" type="JAVA_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
|
4
|
+
<output url="file://$MODULE_DIR$/../../build/classes/main" />
|
5
|
+
<exclude-output />
|
6
|
+
<content url="file://$MODULE_DIR$/../../src/main">
|
7
|
+
<sourceFolder url="file://$MODULE_DIR$/../../src/main/java" isTestSource="false" />
|
8
|
+
<sourceFolder url="file://$MODULE_DIR$/../../src/main/resources" type="java-resource" />
|
9
|
+
</content>
|
10
|
+
<orderEntry type="inheritedJdk" />
|
11
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
12
|
+
<orderEntry type="library" name="Gradle: org.embulk:embulk-core:0.8.9" level="project" />
|
13
|
+
<orderEntry type="library" name="Gradle: org.embulk:guice-bootstrap:0.1.1" level="project" />
|
14
|
+
<orderEntry type="library" name="Gradle: com.google.guava:guava:18.0" level="project" />
|
15
|
+
<orderEntry type="library" name="Gradle: com.google.inject:guice:4.0" level="project" />
|
16
|
+
<orderEntry type="library" name="Gradle: com.google.inject.extensions:guice-multibindings:4.0" level="project" />
|
17
|
+
<orderEntry type="library" name="Gradle: javax.inject:javax.inject:1" level="project" />
|
18
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.core:jackson-annotations:2.5.3" level="project" />
|
19
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.core:jackson-core:2.5.3" level="project" />
|
20
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.core:jackson-databind:2.5.3" level="project" />
|
21
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.datatype:jackson-datatype-guava:2.5.3" level="project" />
|
22
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.datatype:jackson-datatype-joda:2.5.3" level="project" />
|
23
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.module:jackson-module-guice:2.5.3" level="project" />
|
24
|
+
<orderEntry type="library" name="Gradle: ch.qos.logback:logback-classic:1.1.3" level="project" />
|
25
|
+
<orderEntry type="library" name="Gradle: org.slf4j:slf4j-api:1.7.12" level="project" />
|
26
|
+
<orderEntry type="library" name="Gradle: org.jruby:jruby-complete:9.0.5.0" level="project" />
|
27
|
+
<orderEntry type="library" name="Gradle: com.google.code.findbugs:annotations:3.0.0" level="project" />
|
28
|
+
<orderEntry type="library" name="Gradle: org.yaml:snakeyaml:1.14" level="project" />
|
29
|
+
<orderEntry type="library" name="Gradle: javax.validation:validation-api:1.1.0.Final" level="project" />
|
30
|
+
<orderEntry type="library" name="Gradle: org.apache.bval:bval-jsr303:0.5" level="project" />
|
31
|
+
<orderEntry type="library" name="Gradle: io.airlift:slice:0.9" level="project" />
|
32
|
+
<orderEntry type="library" name="Gradle: joda-time:joda-time:2.9.2" level="project" />
|
33
|
+
<orderEntry type="library" name="Gradle: io.netty:netty-buffer:5.0.0.Alpha1" level="project" />
|
34
|
+
<orderEntry type="library" name="Gradle: org.fusesource.jansi:jansi:1.11" level="project" />
|
35
|
+
<orderEntry type="library" name="Gradle: org.msgpack:msgpack-core:0.8.7" level="project" />
|
36
|
+
<orderEntry type="library" name="Gradle: com.ibm.icu:icu4j:54.1.1" level="project" />
|
37
|
+
<orderEntry type="library" name="Gradle: aopalliance:aopalliance:1.0" level="project" />
|
38
|
+
<orderEntry type="library" name="Gradle: ch.qos.logback:logback-core:1.1.3" level="project" />
|
39
|
+
<orderEntry type="library" name="Gradle: org.apache.bval:bval-core:0.5" level="project" />
|
40
|
+
<orderEntry type="library" name="Gradle: org.apache.commons:commons-lang3:3.1" level="project" />
|
41
|
+
<orderEntry type="library" name="Gradle: io.netty:netty-common:5.0.0.Alpha1" level="project" />
|
42
|
+
<orderEntry type="library" name="Gradle: commons-beanutils:commons-beanutils-core:1.8.3" level="project" />
|
43
|
+
</component>
|
44
|
+
</module>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module external.linked.project.id="embulk-filter-concat:test" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="" external.system.module.type="sourceSet" external.system.module.version="0.1.0" type="JAVA_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
|
4
|
+
<output-test url="file://$MODULE_DIR$/../../build/classes/test" />
|
5
|
+
<exclude-output />
|
6
|
+
<content url="file://$MODULE_DIR$/../../src/test">
|
7
|
+
<sourceFolder url="file://$MODULE_DIR$/../../src/test/java" isTestSource="true" />
|
8
|
+
<sourceFolder url="file://$MODULE_DIR$/../../src/test/resources" type="java-test-resource" />
|
9
|
+
</content>
|
10
|
+
<orderEntry type="inheritedJdk" />
|
11
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
12
|
+
<orderEntry type="module" module-name="embulk-filter-concat_main" />
|
13
|
+
<orderEntry type="library" name="Gradle: org.embulk:embulk-core:0.8.9" level="project" />
|
14
|
+
<orderEntry type="library" name="Gradle: junit:junit:4.12" level="project" />
|
15
|
+
<orderEntry type="library" name="Gradle: org.embulk:guice-bootstrap:0.1.1" level="project" />
|
16
|
+
<orderEntry type="library" name="Gradle: com.google.guava:guava:18.0" level="project" />
|
17
|
+
<orderEntry type="library" name="Gradle: com.google.inject:guice:4.0" level="project" />
|
18
|
+
<orderEntry type="library" name="Gradle: com.google.inject.extensions:guice-multibindings:4.0" level="project" />
|
19
|
+
<orderEntry type="library" name="Gradle: javax.inject:javax.inject:1" level="project" />
|
20
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.core:jackson-annotations:2.5.3" level="project" />
|
21
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.core:jackson-core:2.5.3" level="project" />
|
22
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.core:jackson-databind:2.5.3" level="project" />
|
23
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.datatype:jackson-datatype-guava:2.5.3" level="project" />
|
24
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.datatype:jackson-datatype-joda:2.5.3" level="project" />
|
25
|
+
<orderEntry type="library" name="Gradle: com.fasterxml.jackson.module:jackson-module-guice:2.5.3" level="project" />
|
26
|
+
<orderEntry type="library" name="Gradle: ch.qos.logback:logback-classic:1.1.3" level="project" />
|
27
|
+
<orderEntry type="library" name="Gradle: org.slf4j:slf4j-api:1.7.12" level="project" />
|
28
|
+
<orderEntry type="library" name="Gradle: org.jruby:jruby-complete:9.0.5.0" level="project" />
|
29
|
+
<orderEntry type="library" name="Gradle: com.google.code.findbugs:annotations:3.0.0" level="project" />
|
30
|
+
<orderEntry type="library" name="Gradle: org.yaml:snakeyaml:1.14" level="project" />
|
31
|
+
<orderEntry type="library" name="Gradle: javax.validation:validation-api:1.1.0.Final" level="project" />
|
32
|
+
<orderEntry type="library" name="Gradle: org.apache.bval:bval-jsr303:0.5" level="project" />
|
33
|
+
<orderEntry type="library" name="Gradle: io.airlift:slice:0.9" level="project" />
|
34
|
+
<orderEntry type="library" name="Gradle: joda-time:joda-time:2.9.2" level="project" />
|
35
|
+
<orderEntry type="library" name="Gradle: io.netty:netty-buffer:5.0.0.Alpha1" level="project" />
|
36
|
+
<orderEntry type="library" name="Gradle: org.fusesource.jansi:jansi:1.11" level="project" />
|
37
|
+
<orderEntry type="library" name="Gradle: org.msgpack:msgpack-core:0.8.7" level="project" />
|
38
|
+
<orderEntry type="library" name="Gradle: com.ibm.icu:icu4j:54.1.1" level="project" />
|
39
|
+
<orderEntry type="library" name="Gradle: org.hamcrest:hamcrest-core:1.3" level="project" />
|
40
|
+
<orderEntry type="library" name="Gradle: aopalliance:aopalliance:1.0" level="project" />
|
41
|
+
<orderEntry type="library" name="Gradle: ch.qos.logback:logback-core:1.1.3" level="project" />
|
42
|
+
<orderEntry type="library" name="Gradle: org.apache.bval:bval-core:0.5" level="project" />
|
43
|
+
<orderEntry type="library" name="Gradle: org.apache.commons:commons-lang3:3.1" level="project" />
|
44
|
+
<orderEntry type="library" name="Gradle: io.netty:netty-common:5.0.0.Alpha1" level="project" />
|
45
|
+
<orderEntry type="library" name="Gradle: commons-beanutils:commons-beanutils-core:1.8.3" level="project" />
|
46
|
+
</component>
|
47
|
+
<component name="TestModuleProperties" production-module="embulk-filter-concat_main" />
|
48
|
+
</module>
|
data/.idea/vcs.xml
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
MIT License
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
a copy of this software and associated documentation files (the
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# Concat filter plugin for Embulk
|
2
|
+
|
3
|
+
The `embulk-filter-concat` plugin provides a similar function as CONCAT in SQL.
|
4
|
+
|
5
|
+
## Overview
|
6
|
+
|
7
|
+
* **Plugin type**: filter
|
8
|
+
|
9
|
+
## Configuration
|
10
|
+
|
11
|
+
- **name**: name of new column (string, required)
|
12
|
+
- **columns**: columns to add (array of hash, required)
|
13
|
+
- **name**: name of column (required)
|
14
|
+
- **delimiter**: delimiter is inserted into between columns. (string, default: ` ` (space))
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
Say input.csv is as follows:
|
19
|
+
|
20
|
+
```
|
21
|
+
date,time,id
|
22
|
+
2015-07-13,00:00:00,0
|
23
|
+
2015-07-13,00:00:00,1
|
24
|
+
2015-07-13,00:00:00,2
|
25
|
+
```
|
26
|
+
|
27
|
+
```yaml
|
28
|
+
filters:
|
29
|
+
- type: concat
|
30
|
+
name: datetime
|
31
|
+
columns:
|
32
|
+
- {name: date}
|
33
|
+
- {name: time}
|
34
|
+
```
|
35
|
+
|
36
|
+
combines columns with delimiter to new column as String type as :
|
37
|
+
|
38
|
+
```
|
39
|
+
date,time,id,datetime
|
40
|
+
2015-07-13,00:00:00,0,2015-07-13 00:00:00
|
41
|
+
2015-07-13,00:00:00,1,2015-07-13 00:00:00
|
42
|
+
2015-07-13,00:00:00,2,2015-07-13 00:00:00
|
43
|
+
```
|
44
|
+
|
45
|
+
## Limitation
|
46
|
+
|
47
|
+
- `Json` and `Timestamp` type are not supported.
|
48
|
+
|
49
|
+
## ToDo
|
50
|
+
|
51
|
+
- Add Test.
|
52
|
+
|
53
|
+
## Build
|
54
|
+
|
55
|
+
```
|
56
|
+
$ ./gradlew gem # -t to watch change of files and rebuild continuously
|
57
|
+
```
|
data/build.gradle
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
plugins {
|
2
|
+
id "com.jfrog.bintray" version "1.1"
|
3
|
+
id "com.github.jruby-gradle.base" version "0.1.5"
|
4
|
+
id "java"
|
5
|
+
id "checkstyle"
|
6
|
+
}
|
7
|
+
import com.github.jrubygradle.JRubyExec
|
8
|
+
repositories {
|
9
|
+
mavenCentral()
|
10
|
+
jcenter()
|
11
|
+
}
|
12
|
+
configurations {
|
13
|
+
provided
|
14
|
+
}
|
15
|
+
|
16
|
+
version = "0.1.0"
|
17
|
+
|
18
|
+
compileJava.options.encoding = 'UTF-8' // source encoding
|
19
|
+
|
20
|
+
sourceCompatibility = 1.7
|
21
|
+
targetCompatibility = 1.7
|
22
|
+
|
23
|
+
dependencies {
|
24
|
+
compile "org.embulk:embulk-core:0.8.9"
|
25
|
+
provided "org.embulk:embulk-core:0.8.9"
|
26
|
+
// compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
|
27
|
+
testCompile "junit:junit:4.+"
|
28
|
+
}
|
29
|
+
|
30
|
+
task classpath(type: Copy, dependsOn: ["jar"]) {
|
31
|
+
doFirst { file("classpath").deleteDir() }
|
32
|
+
from (configurations.runtime - configurations.provided + files(jar.archivePath))
|
33
|
+
into "classpath"
|
34
|
+
}
|
35
|
+
clean { delete "classpath" }
|
36
|
+
|
37
|
+
checkstyle {
|
38
|
+
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
|
39
|
+
toolVersion = '6.14.1'
|
40
|
+
}
|
41
|
+
checkstyleMain {
|
42
|
+
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
43
|
+
ignoreFailures = true
|
44
|
+
}
|
45
|
+
checkstyleTest {
|
46
|
+
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
47
|
+
ignoreFailures = true
|
48
|
+
}
|
49
|
+
task checkstyle(type: Checkstyle) {
|
50
|
+
classpath = sourceSets.main.output + sourceSets.test.output
|
51
|
+
source = sourceSets.main.allJava + sourceSets.test.allJava
|
52
|
+
}
|
53
|
+
|
54
|
+
task gem(type: JRubyExec, dependsOn: ["gemspec", "classpath"]) {
|
55
|
+
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "build"
|
56
|
+
script "${project.name}.gemspec"
|
57
|
+
doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }
|
58
|
+
}
|
59
|
+
|
60
|
+
task gemPush(type: JRubyExec, dependsOn: ["gem"]) {
|
61
|
+
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "push"
|
62
|
+
script "pkg/${project.name}-${project.version}.gem"
|
63
|
+
}
|
64
|
+
|
65
|
+
task "package"(dependsOn: ["gemspec", "classpath"]) << {
|
66
|
+
println "> Build succeeded."
|
67
|
+
println "> You can run embulk with '-L ${file(".").absolutePath}' argument."
|
68
|
+
}
|
69
|
+
|
70
|
+
task gemspec {
|
71
|
+
ext.gemspecFile = file("${project.name}.gemspec")
|
72
|
+
inputs.file "build.gradle"
|
73
|
+
outputs.file gemspecFile
|
74
|
+
doLast { gemspecFile.write($/
|
75
|
+
Gem::Specification.new do |spec|
|
76
|
+
spec.name = "${project.name}"
|
77
|
+
spec.version = "${project.version}"
|
78
|
+
spec.authors = ["toru-takahashi"]
|
79
|
+
spec.summary = %[Concat filter plugin for Embulk]
|
80
|
+
spec.description = %[Concat]
|
81
|
+
spec.email = ["torutakahashi.ayashi@gmail.com"]
|
82
|
+
spec.licenses = ["MIT"]
|
83
|
+
# TODO set this: spec.homepage = "https://github.com/toru-takahashi/embulk-filter-concat"
|
84
|
+
|
85
|
+
spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
|
86
|
+
spec.test_files = spec.files.grep(%r"^(test|spec)/")
|
87
|
+
spec.require_paths = ["lib"]
|
88
|
+
|
89
|
+
#spec.add_dependency 'YOUR_GEM_DEPENDENCY', ['~> YOUR_GEM_DEPENDENCY_VERSION']
|
90
|
+
spec.add_development_dependency 'bundler', ['~> 1.0']
|
91
|
+
spec.add_development_dependency 'rake', ['>= 10.0']
|
92
|
+
end
|
93
|
+
/$)
|
94
|
+
}
|
95
|
+
}
|
96
|
+
clean { delete "${project.name}.gemspec" }
|
Binary file
|
@@ -0,0 +1,128 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE module PUBLIC
|
3
|
+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
+
<module name="Checker">
|
6
|
+
<!-- https://github.com/facebook/presto/blob/master/src/checkstyle/checks.xml -->
|
7
|
+
<module name="FileTabCharacter"/>
|
8
|
+
<module name="NewlineAtEndOfFile">
|
9
|
+
<property name="lineSeparator" value="lf"/>
|
10
|
+
</module>
|
11
|
+
<module name="RegexpMultiline">
|
12
|
+
<property name="format" value="\r"/>
|
13
|
+
<property name="message" value="Line contains carriage return"/>
|
14
|
+
</module>
|
15
|
+
<module name="RegexpMultiline">
|
16
|
+
<property name="format" value=" \n"/>
|
17
|
+
<property name="message" value="Line has trailing whitespace"/>
|
18
|
+
</module>
|
19
|
+
<module name="RegexpMultiline">
|
20
|
+
<property name="format" value="\{\n\n"/>
|
21
|
+
<property name="message" value="Blank line after opening brace"/>
|
22
|
+
</module>
|
23
|
+
<module name="RegexpMultiline">
|
24
|
+
<property name="format" value="\n\n\s*\}"/>
|
25
|
+
<property name="message" value="Blank line before closing brace"/>
|
26
|
+
</module>
|
27
|
+
<module name="RegexpMultiline">
|
28
|
+
<property name="format" value="\n\n\n"/>
|
29
|
+
<property name="message" value="Multiple consecutive blank lines"/>
|
30
|
+
</module>
|
31
|
+
<module name="RegexpMultiline">
|
32
|
+
<property name="format" value="\n\n\Z"/>
|
33
|
+
<property name="message" value="Blank line before end of file"/>
|
34
|
+
</module>
|
35
|
+
<module name="RegexpMultiline">
|
36
|
+
<property name="format" value="Preconditions\.checkNotNull"/>
|
37
|
+
<property name="message" value="Use of checkNotNull"/>
|
38
|
+
</module>
|
39
|
+
|
40
|
+
<module name="TreeWalker">
|
41
|
+
<module name="EmptyBlock">
|
42
|
+
<property name="option" value="text"/>
|
43
|
+
<property name="tokens" value="
|
44
|
+
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF,
|
45
|
+
LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
|
46
|
+
</module>
|
47
|
+
<module name="EmptyStatement"/>
|
48
|
+
<module name="EmptyForInitializerPad"/>
|
49
|
+
<module name="EmptyForIteratorPad">
|
50
|
+
<property name="option" value="space"/>
|
51
|
+
</module>
|
52
|
+
<module name="MethodParamPad">
|
53
|
+
<property name="allowLineBreaks" value="true"/>
|
54
|
+
<property name="option" value="nospace"/>
|
55
|
+
</module>
|
56
|
+
<module name="ParenPad"/>
|
57
|
+
<module name="TypecastParenPad"/>
|
58
|
+
<module name="NeedBraces"/>
|
59
|
+
<module name="LeftCurly">
|
60
|
+
<property name="option" value="nl"/>
|
61
|
+
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
62
|
+
</module>
|
63
|
+
<module name="LeftCurly">
|
64
|
+
<property name="option" value="eol"/>
|
65
|
+
<property name="tokens" value="
|
66
|
+
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR,
|
67
|
+
LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE"/>
|
68
|
+
</module>
|
69
|
+
<module name="RightCurly">
|
70
|
+
<property name="option" value="alone"/>
|
71
|
+
</module>
|
72
|
+
<module name="GenericWhitespace"/>
|
73
|
+
<module name="WhitespaceAfter"/>
|
74
|
+
<module name="NoWhitespaceBefore"/>
|
75
|
+
|
76
|
+
<module name="UpperEll"/>
|
77
|
+
<module name="DefaultComesLast"/>
|
78
|
+
<module name="ArrayTypeStyle"/>
|
79
|
+
<module name="MultipleVariableDeclarations"/>
|
80
|
+
<module name="ModifierOrder"/>
|
81
|
+
<module name="OneStatementPerLine"/>
|
82
|
+
<module name="StringLiteralEquality"/>
|
83
|
+
<module name="MutableException"/>
|
84
|
+
<module name="EqualsHashCode"/>
|
85
|
+
<module name="InnerAssignment"/>
|
86
|
+
<module name="InterfaceIsType"/>
|
87
|
+
<module name="HideUtilityClassConstructor"/>
|
88
|
+
|
89
|
+
<module name="MemberName"/>
|
90
|
+
<module name="LocalVariableName"/>
|
91
|
+
<module name="LocalFinalVariableName"/>
|
92
|
+
<module name="TypeName"/>
|
93
|
+
<module name="PackageName"/>
|
94
|
+
<module name="ParameterName"/>
|
95
|
+
<module name="StaticVariableName"/>
|
96
|
+
<module name="ClassTypeParameterName">
|
97
|
+
<property name="format" value="^[A-Z][0-9]?$"/>
|
98
|
+
</module>
|
99
|
+
<module name="MethodTypeParameterName">
|
100
|
+
<property name="format" value="^[A-Z][0-9]?$"/>
|
101
|
+
</module>
|
102
|
+
|
103
|
+
<module name="AvoidStarImport"/>
|
104
|
+
<module name="RedundantImport"/>
|
105
|
+
<module name="UnusedImports"/>
|
106
|
+
<module name="ImportOrder">
|
107
|
+
<property name="groups" value="*,javax,java"/>
|
108
|
+
<property name="separated" value="true"/>
|
109
|
+
<property name="option" value="bottom"/>
|
110
|
+
<property name="sortStaticImportsAlphabetically" value="true"/>
|
111
|
+
</module>
|
112
|
+
|
113
|
+
<module name="WhitespaceAround">
|
114
|
+
<property name="allowEmptyConstructors" value="true"/>
|
115
|
+
<property name="allowEmptyMethods" value="true"/>
|
116
|
+
<property name="ignoreEnhancedForColon" value="false"/>
|
117
|
+
<property name="tokens" value="
|
118
|
+
ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
|
119
|
+
BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE,
|
120
|
+
LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
|
121
|
+
LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
|
122
|
+
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE,
|
123
|
+
LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL,
|
124
|
+
PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN,
|
125
|
+
STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
|
126
|
+
</module>
|
127
|
+
</module>
|
128
|
+
</module>
|