embulk 0.8.39-java → 0.10.24-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/LICENSE +202 -0
- data/embulk.gemspec +34 -33
- data/lib/embulk.rb +5 -61
- data/lib/embulk/buffer.rb +1 -2
- data/lib/embulk/guess/charset.rb +2 -11
- data/lib/embulk/java/bootstrap.rb +0 -1
- data/lib/embulk/java_plugin.rb +9 -1
- data/lib/embulk/page_builder.rb +2 -2
- data/lib/embulk/plugin.rb +2 -2
- data/lib/embulk/schema.rb +3 -4
- data/lib/embulk/version.rb +3 -22
- metadata +22 -757
- data/.gitignore +0 -15
- data/.ruby-version +0 -1
- data/.travis.yml +0 -28
- data/COPYING +0 -14
- data/Gemfile.lock +0 -30
- data/README.md +0 -229
- data/Rakefile +0 -26
- data/appveyor.yml +0 -28
- data/bin/embulk +0 -139
- data/build.gradle +0 -419
- data/embulk-cli/build.gradle +0 -9
- data/embulk-cli/src/main/bat/selfrun.bat +0 -107
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkArguments.java +0 -54
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLine.java +0 -227
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLineException.java +0 -25
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkExample.java +0 -86
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkMigrate.java +0 -480
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkNew.java +0 -419
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkRun.java +0 -786
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkSelfUpdate.java +0 -235
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkSubcommand.java +0 -47
- data/embulk-cli/src/main/java/org/embulk/cli/Main.java +0 -31
- data/embulk-cli/src/main/java/org/embulk/cli/parse/AbstractHelpLineDefinition.java +0 -15
- data/embulk-cli/src/main/java/org/embulk/cli/parse/CliHelpFormatterWithHelpMessages.java +0 -141
- data/embulk-cli/src/main/java/org/embulk/cli/parse/CliOptionsWithHelpMessages.java +0 -45
- data/embulk-cli/src/main/java/org/embulk/cli/parse/EmbulkCommandLineHelpRequired.java +0 -10
- data/embulk-cli/src/main/java/org/embulk/cli/parse/EmbulkCommandLineParseException.java +0 -25
- data/embulk-cli/src/main/java/org/embulk/cli/parse/EmbulkCommandLineParser.java +0 -187
- data/embulk-cli/src/main/java/org/embulk/cli/parse/HelpMessageAsCliOption.java +0 -36
- data/embulk-cli/src/main/java/org/embulk/cli/parse/HelpMessageLineDefinition.java +0 -20
- data/embulk-cli/src/main/java/org/embulk/cli/parse/OptionBehavior.java +0 -39
- data/embulk-cli/src/main/java/org/embulk/cli/parse/OptionDefinition.java +0 -120
- data/embulk-cli/src/main/sh/selfrun.sh +0 -60
- data/embulk-cli/src/test/java/org/embulk/cli/DummyMain.java +0 -23
- data/embulk-cli/src/test/java/org/embulk/cli/SelfrunTest.java +0 -296
- data/embulk-core/build.gradle +0 -83
- data/embulk-core/src/main/java/org/embulk/EmbulkEmbed.java +0 -321
- data/embulk-core/src/main/java/org/embulk/EmbulkRunner.java +0 -531
- data/embulk-core/src/main/java/org/embulk/EmbulkService.java +0 -78
- data/embulk-core/src/main/java/org/embulk/EmbulkSetup.java +0 -49
- data/embulk-core/src/main/java/org/embulk/EmbulkVersion.java +0 -109
- data/embulk-core/src/main/java/org/embulk/command/PreviewPrinter.java +0 -87
- data/embulk-core/src/main/java/org/embulk/command/TablePreviewPrinter.java +0 -107
- data/embulk-core/src/main/java/org/embulk/command/VerticalPreviewPrinter.java +0 -47
- data/embulk-core/src/main/java/org/embulk/config/CommitReport.java +0 -36
- data/embulk-core/src/main/java/org/embulk/config/Config.java +0 -15
- data/embulk-core/src/main/java/org/embulk/config/ConfigDefault.java +0 -15
- data/embulk-core/src/main/java/org/embulk/config/ConfigDiff.java +0 -32
- data/embulk-core/src/main/java/org/embulk/config/ConfigException.java +0 -26
- data/embulk-core/src/main/java/org/embulk/config/ConfigInject.java +0 -14
- data/embulk-core/src/main/java/org/embulk/config/ConfigLoader.java +0 -149
- data/embulk-core/src/main/java/org/embulk/config/ConfigSource.java +0 -34
- data/embulk-core/src/main/java/org/embulk/config/DataSource.java +0 -41
- data/embulk-core/src/main/java/org/embulk/config/DataSourceImpl.java +0 -243
- data/embulk-core/src/main/java/org/embulk/config/DataSourceSerDe.java +0 -84
- data/embulk-core/src/main/java/org/embulk/config/GenericTypeReference.java +0 -20
- data/embulk-core/src/main/java/org/embulk/config/ModelManager.java +0 -123
- data/embulk-core/src/main/java/org/embulk/config/Task.java +0 -10
- data/embulk-core/src/main/java/org/embulk/config/TaskInvocationHandler.java +0 -180
- data/embulk-core/src/main/java/org/embulk/config/TaskReport.java +0 -32
- data/embulk-core/src/main/java/org/embulk/config/TaskSerDe.java +0 -349
- data/embulk-core/src/main/java/org/embulk/config/TaskSource.java +0 -34
- data/embulk-core/src/main/java/org/embulk/config/TaskValidationException.java +0 -38
- data/embulk-core/src/main/java/org/embulk/config/TaskValidator.java +0 -24
- data/embulk-core/src/main/java/org/embulk/config/UserDataException.java +0 -4
- data/embulk-core/src/main/java/org/embulk/config/UserDataExceptions.java +0 -17
- data/embulk-core/src/main/java/org/embulk/config/YamlTagResolver.java +0 -53
- data/embulk-core/src/main/java/org/embulk/exec/BufferFileInputPlugin.java +0 -88
- data/embulk-core/src/main/java/org/embulk/exec/BulkLoader.java +0 -754
- data/embulk-core/src/main/java/org/embulk/exec/ConfigurableGuessInputPlugin.java +0 -9
- data/embulk-core/src/main/java/org/embulk/exec/ExecModule.java +0 -53
- data/embulk-core/src/main/java/org/embulk/exec/ExecutionInterruptedException.java +0 -10
- data/embulk-core/src/main/java/org/embulk/exec/ExecutionResult.java +0 -33
- data/embulk-core/src/main/java/org/embulk/exec/ExtensionServiceLoaderModule.java +0 -43
- data/embulk-core/src/main/java/org/embulk/exec/ForGuess.java +0 -16
- data/embulk-core/src/main/java/org/embulk/exec/ForSystemConfig.java +0 -16
- data/embulk-core/src/main/java/org/embulk/exec/GuessExecutor.java +0 -309
- data/embulk-core/src/main/java/org/embulk/exec/LocalExecutorPlugin.java +0 -563
- data/embulk-core/src/main/java/org/embulk/exec/LoggerProvider.java +0 -68
- data/embulk-core/src/main/java/org/embulk/exec/NoSampleException.java +0 -10
- data/embulk-core/src/main/java/org/embulk/exec/PartialExecutionException.java +0 -26
- data/embulk-core/src/main/java/org/embulk/exec/PooledBufferAllocator.java +0 -77
- data/embulk-core/src/main/java/org/embulk/exec/PreviewExecutor.java +0 -222
- data/embulk-core/src/main/java/org/embulk/exec/PreviewResult.java +0 -27
- data/embulk-core/src/main/java/org/embulk/exec/PreviewedNoticeError.java +0 -17
- data/embulk-core/src/main/java/org/embulk/exec/ResumeState.java +0 -100
- data/embulk-core/src/main/java/org/embulk/exec/SamplingParserPlugin.java +0 -215
- data/embulk-core/src/main/java/org/embulk/exec/SetCurrentThreadName.java +0 -22
- data/embulk-core/src/main/java/org/embulk/exec/SkipTransactionException.java +0 -23
- data/embulk-core/src/main/java/org/embulk/exec/SystemConfigModule.java +0 -24
- data/embulk-core/src/main/java/org/embulk/exec/TempFileAllocator.java +0 -35
- data/embulk-core/src/main/java/org/embulk/exec/TransactionStage.java +0 -27
- data/embulk-core/src/main/java/org/embulk/jruby/JRubyPluginSource.java +0 -76
- data/embulk-core/src/main/java/org/embulk/jruby/JRubyScriptingModule.java +0 -395
- data/embulk-core/src/main/java/org/embulk/plugin/BuiltinPluginSourceModule.java +0 -17
- data/embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java +0 -50
- data/embulk-core/src/main/java/org/embulk/plugin/InjectedPluginSource.java +0 -100
- data/embulk-core/src/main/java/org/embulk/plugin/MavenPluginType.java +0 -112
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoader.java +0 -993
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoaderFactory.java +0 -16
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoaderModule.java +0 -102
- data/embulk-core/src/main/java/org/embulk/plugin/PluginManager.java +0 -78
- data/embulk-core/src/main/java/org/embulk/plugin/PluginSource.java +0 -49
- data/embulk-core/src/main/java/org/embulk/plugin/PluginSourceNotMatchException.java +0 -25
- data/embulk-core/src/main/java/org/embulk/plugin/PluginType.java +0 -122
- data/embulk-core/src/main/java/org/embulk/plugin/compat/InputPluginWrapper.java +0 -102
- data/embulk-core/src/main/java/org/embulk/plugin/compat/PluginWrappers.java +0 -30
- data/embulk-core/src/main/java/org/embulk/plugin/compat/TransactionalFileInputWrapper.java +0 -96
- data/embulk-core/src/main/java/org/embulk/plugin/compat/TransactionalFileOutputWrapper.java +0 -102
- data/embulk-core/src/main/java/org/embulk/plugin/compat/TransactionalPageOutputWrapper.java +0 -95
- data/embulk-core/src/main/java/org/embulk/plugin/jar/InvalidJarPluginException.java +0 -14
- data/embulk-core/src/main/java/org/embulk/plugin/jar/JarPluginLoader.java +0 -232
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenArtifactFinder.java +0 -134
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenArtifactNotFoundException.java +0 -20
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenPluginSource.java +0 -187
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenPluginSourceModule.java +0 -22
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenRepositoryNotFoundException.java +0 -31
- data/embulk-core/src/main/java/org/embulk/spi/AbortTransactionResource.java +0 -36
- data/embulk-core/src/main/java/org/embulk/spi/Buffer.java +0 -148
- data/embulk-core/src/main/java/org/embulk/spi/BufferAllocator.java +0 -8
- data/embulk-core/src/main/java/org/embulk/spi/CloseResource.java +0 -42
- data/embulk-core/src/main/java/org/embulk/spi/Column.java +0 -95
- data/embulk-core/src/main/java/org/embulk/spi/ColumnConfig.java +0 -112
- data/embulk-core/src/main/java/org/embulk/spi/ColumnVisitor.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/DataException.java +0 -23
- data/embulk-core/src/main/java/org/embulk/spi/DecoderPlugin.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/EncoderPlugin.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/Exec.java +0 -113
- data/embulk-core/src/main/java/org/embulk/spi/ExecAction.java +0 -6
- data/embulk-core/src/main/java/org/embulk/spi/ExecSession.java +0 -220
- data/embulk-core/src/main/java/org/embulk/spi/ExecutorPlugin.java +0 -19
- data/embulk-core/src/main/java/org/embulk/spi/Extension.java +0 -44
- data/embulk-core/src/main/java/org/embulk/spi/FileInput.java +0 -11
- data/embulk-core/src/main/java/org/embulk/spi/FileInputPlugin.java +0 -30
- data/embulk-core/src/main/java/org/embulk/spi/FileInputRunner.java +0 -169
- data/embulk-core/src/main/java/org/embulk/spi/FileOutput.java +0 -13
- data/embulk-core/src/main/java/org/embulk/spi/FileOutputPlugin.java +0 -28
- data/embulk-core/src/main/java/org/embulk/spi/FileOutputRunner.java +0 -199
- data/embulk-core/src/main/java/org/embulk/spi/FilterPlugin.java +0 -18
- data/embulk-core/src/main/java/org/embulk/spi/FormatterPlugin.java +0 -18
- data/embulk-core/src/main/java/org/embulk/spi/GuessPlugin.java +0 -9
- data/embulk-core/src/main/java/org/embulk/spi/InputPlugin.java +0 -33
- data/embulk-core/src/main/java/org/embulk/spi/OutputPlugin.java +0 -29
- data/embulk-core/src/main/java/org/embulk/spi/Page.java +0 -86
- data/embulk-core/src/main/java/org/embulk/spi/PageBuilder.java +0 -696
- data/embulk-core/src/main/java/org/embulk/spi/PageFormat.java +0 -47
- data/embulk-core/src/main/java/org/embulk/spi/PageOutput.java +0 -11
- data/embulk-core/src/main/java/org/embulk/spi/PageReader.java +0 -248
- data/embulk-core/src/main/java/org/embulk/spi/ParserPlugin.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/ProcessState.java +0 -10
- data/embulk-core/src/main/java/org/embulk/spi/ProcessTask.java +0 -117
- data/embulk-core/src/main/java/org/embulk/spi/Schema.java +0 -139
- data/embulk-core/src/main/java/org/embulk/spi/SchemaConfig.java +0 -93
- data/embulk-core/src/main/java/org/embulk/spi/SchemaConfigException.java +0 -22
- data/embulk-core/src/main/java/org/embulk/spi/TaskState.java +0 -81
- data/embulk-core/src/main/java/org/embulk/spi/TempFileException.java +0 -19
- data/embulk-core/src/main/java/org/embulk/spi/TempFileSpace.java +0 -88
- data/embulk-core/src/main/java/org/embulk/spi/Transactional.java +0 -10
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileInput.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileOutput.java +0 -19
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalPageOutput.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/json/JsonParseException.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/json/JsonParser.java +0 -233
- data/embulk-core/src/main/java/org/embulk/spi/json/RubyValueApi.java +0 -100
- data/embulk-core/src/main/java/org/embulk/spi/time/DateTimeZoneSerDe.java +0 -55
- data/embulk-core/src/main/java/org/embulk/spi/time/Timestamp.java +0 -180
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampFormat.java +0 -158
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampFormatter.java +0 -125
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampParseException.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampParser.java +0 -310
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampSerDe.java +0 -49
- data/embulk-core/src/main/java/org/embulk/spi/type/AbstractType.java +0 -58
- data/embulk-core/src/main/java/org/embulk/spi/type/BooleanType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/DoubleType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/JsonType.java +0 -14
- data/embulk-core/src/main/java/org/embulk/spi/type/LongType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/StringType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/TimestampType.java +0 -41
- data/embulk-core/src/main/java/org/embulk/spi/type/Type.java +0 -15
- data/embulk-core/src/main/java/org/embulk/spi/type/TypeDeserializer.java +0 -45
- data/embulk-core/src/main/java/org/embulk/spi/type/Types.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/unit/ByteSize.java +0 -156
- data/embulk-core/src/main/java/org/embulk/spi/unit/LocalFile.java +0 -106
- data/embulk-core/src/main/java/org/embulk/spi/unit/LocalFileSerDe.java +0 -113
- data/embulk-core/src/main/java/org/embulk/spi/unit/ToString.java +0 -54
- data/embulk-core/src/main/java/org/embulk/spi/unit/ToStringMap.java +0 -34
- data/embulk-core/src/main/java/org/embulk/spi/util/CharsetSerDe.java +0 -55
- data/embulk-core/src/main/java/org/embulk/spi/util/Decoders.java +0 -81
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnNotFoundException.java +0 -10
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnSetter.java +0 -21
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnSetterFactory.java +0 -134
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicPageBuilder.java +0 -200
- data/embulk-core/src/main/java/org/embulk/spi/util/Encoders.java +0 -81
- data/embulk-core/src/main/java/org/embulk/spi/util/Executors.java +0 -93
- data/embulk-core/src/main/java/org/embulk/spi/util/FileInputInputStream.java +0 -111
- data/embulk-core/src/main/java/org/embulk/spi/util/FileOutputOutputStream.java +0 -119
- data/embulk-core/src/main/java/org/embulk/spi/util/Filters.java +0 -100
- data/embulk-core/src/main/java/org/embulk/spi/util/InputStreamFileInput.java +0 -189
- data/embulk-core/src/main/java/org/embulk/spi/util/InputStreamTransactionalFileInput.java +0 -25
- data/embulk-core/src/main/java/org/embulk/spi/util/Inputs.java +0 -65
- data/embulk-core/src/main/java/org/embulk/spi/util/LineDecoder.java +0 -157
- data/embulk-core/src/main/java/org/embulk/spi/util/LineEncoder.java +0 -123
- data/embulk-core/src/main/java/org/embulk/spi/util/ListFileInput.java +0 -52
- data/embulk-core/src/main/java/org/embulk/spi/util/Newline.java +0 -38
- data/embulk-core/src/main/java/org/embulk/spi/util/OutputStreamFileOutput.java +0 -88
- data/embulk-core/src/main/java/org/embulk/spi/util/PagePrinter.java +0 -126
- data/embulk-core/src/main/java/org/embulk/spi/util/Pages.java +0 -149
- data/embulk-core/src/main/java/org/embulk/spi/util/ResumableInputStream.java +0 -168
- data/embulk-core/src/main/java/org/embulk/spi/util/RetryExecutor.java +0 -130
- data/embulk-core/src/main/java/org/embulk/spi/util/Timestamps.java +0 -53
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/AbstractDynamicColumnSetter.java +0 -94
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/BooleanColumnSetter.java +0 -71
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/DefaultValueSetter.java +0 -20
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/DoubleColumnSetter.java +0 -68
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/JsonColumnSetter.java +0 -64
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/LongColumnSetter.java +0 -78
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/NullDefaultValueSetter.java +0 -39
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/SkipColumnSetter.java +0 -68
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/StringColumnSetter.java +0 -63
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/TimestampColumnSetter.java +0 -72
- data/embulk-core/src/main/resources/embulk/logback-color.xml +0 -72
- data/embulk-core/src/main/resources/embulk/logback-console.xml +0 -14
- data/embulk-core/src/main/resources/embulk/logback-file.xml +0 -23
- data/embulk-core/src/main/resources/embulk/parent_first_packages.properties +0 -73
- data/embulk-core/src/main/resources/embulk/parent_first_resources.properties +0 -29
- data/embulk-core/src/test/java/org/embulk/EmbulkTestRuntime.java +0 -122
- data/embulk-core/src/test/java/org/embulk/GuiceBinder.java +0 -72
- data/embulk-core/src/test/java/org/embulk/RandomManager.java +0 -53
- data/embulk-core/src/test/java/org/embulk/TestPluginSourceModule.java +0 -23
- data/embulk-core/src/test/java/org/embulk/TestUtilityModule.java +0 -17
- data/embulk-core/src/test/java/org/embulk/config/TestConfigLoader.java +0 -66
- data/embulk-core/src/test/java/org/embulk/config/TestConfigSource.java +0 -114
- data/embulk-core/src/test/java/org/embulk/config/TestTaskSource.java +0 -70
- data/embulk-core/src/test/java/org/embulk/plugin/MockPluginSource.java +0 -58
- data/embulk-core/src/test/java/org/embulk/plugin/TestPluginType.java +0 -83
- data/embulk-core/src/test/java/org/embulk/plugin/TestPluginTypeSerDe.java +0 -67
- data/embulk-core/src/test/java/org/embulk/plugin/jar/ExampleJarSpiV0.java +0 -9
- data/embulk-core/src/test/java/org/embulk/plugin/jar/JarBuilder.java +0 -101
- data/embulk-core/src/test/java/org/embulk/plugin/jar/TestJarPluginLoader.java +0 -60
- data/embulk-core/src/test/java/org/embulk/plugin/maven/TestMavenArtifactFinder.java +0 -41
- data/embulk-core/src/test/java/org/embulk/spi/MockFileOutput.java +0 -63
- data/embulk-core/src/test/java/org/embulk/spi/MockFormatterPlugin.java +0 -108
- data/embulk-core/src/test/java/org/embulk/spi/MockParserPlugin.java +0 -80
- data/embulk-core/src/test/java/org/embulk/spi/PageTestUtils.java +0 -59
- data/embulk-core/src/test/java/org/embulk/spi/TestBuffer.java +0 -24
- data/embulk-core/src/test/java/org/embulk/spi/TestFileInputInputStream.java +0 -89
- data/embulk-core/src/test/java/org/embulk/spi/TestFileInputRunner.java +0 -199
- data/embulk-core/src/test/java/org/embulk/spi/TestFileOutputRunner.java +0 -221
- data/embulk-core/src/test/java/org/embulk/spi/TestInputStreamFileInput.java +0 -188
- data/embulk-core/src/test/java/org/embulk/spi/TestPageBuilderReader.java +0 -411
- data/embulk-core/src/test/java/org/embulk/spi/json/TestJsonParser.java +0 -102
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestamp.java +0 -116
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParser.java +0 -75
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParserDeprecated.java +0 -67
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampParser.java +0 -247
- data/embulk-core/src/test/java/org/embulk/spi/type/TestTypeSerDe.java +0 -45
- data/embulk-core/src/test/java/org/embulk/spi/unit/TestByteSize.java +0 -79
- data/embulk-core/src/test/java/org/embulk/spi/util/TestLineDecoder.java +0 -237
- data/embulk-core/src/test/java/org/embulk/spi/util/TestLineEncoder.java +0 -123
- data/embulk-core/src/test/resources/m2.test/.gitignore +0 -1
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.jar +0 -0
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.jar.sha1 +0 -1
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.pom +0 -9
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.pom.sha1 +0 -1
- data/embulk-docs/Makefile +0 -178
- data/embulk-docs/build.gradle +0 -41
- data/embulk-docs/make.bat +0 -243
- data/embulk-docs/push-gh-pages.sh +0 -49
- data/embulk-docs/src/_static/embulk-architecture.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-oneline-tr.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-oneline-wt.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-oneline.ai +0 -396
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq-tr-small.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq-tr.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq-wt.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq.ai +0 -417
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq.svg +0 -1
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-symbol-tr.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-symbol-wt.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-symbol.ai +1 -394
- data/embulk-docs/src/_static/embulk-logo.svg +0 -133
- data/embulk-docs/src/built-in.rst +0 -1017
- data/embulk-docs/src/conf.py +0 -260
- data/embulk-docs/src/customization.rst +0 -184
- data/embulk-docs/src/developers/index.rst +0 -45
- data/embulk-docs/src/index.rst +0 -102
- data/embulk-docs/src/logo.rst +0 -27
- data/embulk-docs/src/recipe.rst +0 -8
- data/embulk-docs/src/recipe/scheduled-csv-load-to-elasticsearch-kibana5.rst +0 -163
- data/embulk-docs/src/release.rst +0 -109
- data/embulk-docs/src/release/release-0.1.0.rst +0 -8
- data/embulk-docs/src/release/release-0.2.0.rst +0 -16
- data/embulk-docs/src/release/release-0.2.1.rst +0 -19
- data/embulk-docs/src/release/release-0.3.0.rst +0 -34
- data/embulk-docs/src/release/release-0.3.1.rst +0 -11
- data/embulk-docs/src/release/release-0.3.2.rst +0 -15
- data/embulk-docs/src/release/release-0.4.0.rst +0 -74
- data/embulk-docs/src/release/release-0.4.1.rst +0 -18
- data/embulk-docs/src/release/release-0.4.10.rst +0 -17
- data/embulk-docs/src/release/release-0.4.2.rst +0 -18
- data/embulk-docs/src/release/release-0.4.3.rst +0 -34
- data/embulk-docs/src/release/release-0.4.4.rst +0 -39
- data/embulk-docs/src/release/release-0.4.5.rst +0 -24
- data/embulk-docs/src/release/release-0.4.6.rst +0 -30
- data/embulk-docs/src/release/release-0.4.7.rst +0 -16
- data/embulk-docs/src/release/release-0.4.8.rst +0 -15
- data/embulk-docs/src/release/release-0.4.9.rst +0 -23
- data/embulk-docs/src/release/release-0.5.0.rst +0 -89
- data/embulk-docs/src/release/release-0.5.1.rst +0 -13
- data/embulk-docs/src/release/release-0.5.2.rst +0 -30
- data/embulk-docs/src/release/release-0.5.3.rst +0 -22
- data/embulk-docs/src/release/release-0.5.4.rst +0 -24
- data/embulk-docs/src/release/release-0.5.5.rst +0 -18
- data/embulk-docs/src/release/release-0.6.0.rst +0 -34
- data/embulk-docs/src/release/release-0.6.1.rst +0 -11
- data/embulk-docs/src/release/release-0.6.10.rst +0 -15
- data/embulk-docs/src/release/release-0.6.11.rst +0 -19
- data/embulk-docs/src/release/release-0.6.12.rst +0 -31
- data/embulk-docs/src/release/release-0.6.13.rst +0 -23
- data/embulk-docs/src/release/release-0.6.14.rst +0 -47
- data/embulk-docs/src/release/release-0.6.15.rst +0 -26
- data/embulk-docs/src/release/release-0.6.16.rst +0 -26
- data/embulk-docs/src/release/release-0.6.17.rst +0 -39
- data/embulk-docs/src/release/release-0.6.18.rst +0 -14
- data/embulk-docs/src/release/release-0.6.19.rst +0 -18
- data/embulk-docs/src/release/release-0.6.2.rst +0 -17
- data/embulk-docs/src/release/release-0.6.20.rst +0 -19
- data/embulk-docs/src/release/release-0.6.21.rst +0 -20
- data/embulk-docs/src/release/release-0.6.22.rst +0 -26
- data/embulk-docs/src/release/release-0.6.23.rst +0 -17
- data/embulk-docs/src/release/release-0.6.24.rst +0 -13
- data/embulk-docs/src/release/release-0.6.25.rst +0 -12
- data/embulk-docs/src/release/release-0.6.26.rst +0 -17
- data/embulk-docs/src/release/release-0.6.27.rst +0 -11
- data/embulk-docs/src/release/release-0.6.3.rst +0 -23
- data/embulk-docs/src/release/release-0.6.4.rst +0 -13
- data/embulk-docs/src/release/release-0.6.5.rst +0 -17
- data/embulk-docs/src/release/release-0.6.6.rst +0 -17
- data/embulk-docs/src/release/release-0.6.7.rst +0 -17
- data/embulk-docs/src/release/release-0.6.8.rst +0 -24
- data/embulk-docs/src/release/release-0.6.9.rst +0 -24
- data/embulk-docs/src/release/release-0.7.0.rst +0 -96
- data/embulk-docs/src/release/release-0.7.1.rst +0 -22
- data/embulk-docs/src/release/release-0.7.10.rst +0 -13
- data/embulk-docs/src/release/release-0.7.11.rst +0 -12
- data/embulk-docs/src/release/release-0.7.2.rst +0 -25
- data/embulk-docs/src/release/release-0.7.3.rst +0 -21
- data/embulk-docs/src/release/release-0.7.4.rst +0 -14
- data/embulk-docs/src/release/release-0.7.5.rst +0 -22
- data/embulk-docs/src/release/release-0.7.6.rst +0 -18
- data/embulk-docs/src/release/release-0.7.7.rst +0 -13
- data/embulk-docs/src/release/release-0.7.8.rst +0 -14
- data/embulk-docs/src/release/release-0.7.9.rst +0 -14
- data/embulk-docs/src/release/release-0.8.0.rst +0 -74
- data/embulk-docs/src/release/release-0.8.1.rst +0 -18
- data/embulk-docs/src/release/release-0.8.10.rst +0 -35
- data/embulk-docs/src/release/release-0.8.11.rst +0 -12
- data/embulk-docs/src/release/release-0.8.12.rst +0 -12
- data/embulk-docs/src/release/release-0.8.13.rst +0 -12
- data/embulk-docs/src/release/release-0.8.14.rst +0 -31
- data/embulk-docs/src/release/release-0.8.15.rst +0 -17
- data/embulk-docs/src/release/release-0.8.16.rst +0 -43
- data/embulk-docs/src/release/release-0.8.17.rst +0 -11
- data/embulk-docs/src/release/release-0.8.18.rst +0 -27
- data/embulk-docs/src/release/release-0.8.19.rst +0 -43
- data/embulk-docs/src/release/release-0.8.2.rst +0 -19
- data/embulk-docs/src/release/release-0.8.20.rst +0 -11
- data/embulk-docs/src/release/release-0.8.21.rst +0 -17
- data/embulk-docs/src/release/release-0.8.22.rst +0 -15
- data/embulk-docs/src/release/release-0.8.23.rst +0 -14
- data/embulk-docs/src/release/release-0.8.24.rst +0 -15
- data/embulk-docs/src/release/release-0.8.25.rst +0 -14
- data/embulk-docs/src/release/release-0.8.26.rst +0 -16
- data/embulk-docs/src/release/release-0.8.27.rst +0 -15
- data/embulk-docs/src/release/release-0.8.28.rst +0 -14
- data/embulk-docs/src/release/release-0.8.29.rst +0 -14
- data/embulk-docs/src/release/release-0.8.3.rst +0 -15
- data/embulk-docs/src/release/release-0.8.30.rst +0 -14
- data/embulk-docs/src/release/release-0.8.31.rst +0 -12
- data/embulk-docs/src/release/release-0.8.32.rst +0 -14
- data/embulk-docs/src/release/release-0.8.33.rst +0 -13
- data/embulk-docs/src/release/release-0.8.34.rst +0 -12
- data/embulk-docs/src/release/release-0.8.35.rst +0 -12
- data/embulk-docs/src/release/release-0.8.36.rst +0 -32
- data/embulk-docs/src/release/release-0.8.37.rst +0 -20
- data/embulk-docs/src/release/release-0.8.38.rst +0 -12
- data/embulk-docs/src/release/release-0.8.39.rst +0 -12
- data/embulk-docs/src/release/release-0.8.4.rst +0 -18
- data/embulk-docs/src/release/release-0.8.5.rst +0 -11
- data/embulk-docs/src/release/release-0.8.6.rst +0 -14
- data/embulk-docs/src/release/release-0.8.7.rst +0 -18
- data/embulk-docs/src/release/release-0.8.8.rst +0 -18
- data/embulk-docs/src/release/release-0.8.9.rst +0 -14
- data/embulk-jruby-strptime/build.gradle +0 -3
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/RubyDateParser.java +0 -121
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/StrptimeFormat.java +0 -53
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/StrptimeParser.java +0 -884
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/StrptimeToken.java +0 -111
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/TimeZoneConverter.java +0 -466
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/lexer/StrptimeLexer.flex +0 -62
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/lexer/StrptimeLexer.java +0 -577
- data/embulk-standards/build.gradle +0 -7
- data/embulk-standards/src/main/java/org/embulk/standards/Bzip2FileDecoderPlugin.java +0 -55
- data/embulk-standards/src/main/java/org/embulk/standards/Bzip2FileEncoderPlugin.java +0 -67
- data/embulk-standards/src/main/java/org/embulk/standards/ConfigInputPlugin.java +0 -170
- data/embulk-standards/src/main/java/org/embulk/standards/CsvFormatterPlugin.java +0 -295
- data/embulk-standards/src/main/java/org/embulk/standards/CsvParserPlugin.java +0 -416
- data/embulk-standards/src/main/java/org/embulk/standards/CsvTokenizer.java +0 -545
- data/embulk-standards/src/main/java/org/embulk/standards/GzipFileDecoderPlugin.java +0 -55
- data/embulk-standards/src/main/java/org/embulk/standards/GzipFileEncoderPlugin.java +0 -71
- data/embulk-standards/src/main/java/org/embulk/standards/JsonParserPlugin.java +0 -235
- data/embulk-standards/src/main/java/org/embulk/standards/LocalFileInputPlugin.java +0 -232
- data/embulk-standards/src/main/java/org/embulk/standards/LocalFileOutputPlugin.java +0 -148
- data/embulk-standards/src/main/java/org/embulk/standards/NullOutputPlugin.java +0 -59
- data/embulk-standards/src/main/java/org/embulk/standards/RemoveColumnsFilterPlugin.java +0 -268
- data/embulk-standards/src/main/java/org/embulk/standards/RenameFilterPlugin.java +0 -479
- data/embulk-standards/src/main/java/org/embulk/standards/StandardPluginExtension.java +0 -16
- data/embulk-standards/src/main/java/org/embulk/standards/StandardPluginModule.java +0 -60
- data/embulk-standards/src/main/java/org/embulk/standards/StdoutOutputPlugin.java +0 -91
- data/embulk-standards/src/main/resources/META-INF/services/org.embulk.spi.Extension +0 -1
- data/embulk-standards/src/test/java/org/embulk/standards/TestCsvFormatterPlugin.java +0 -312
- data/embulk-standards/src/test/java/org/embulk/standards/TestCsvParserPlugin.java +0 -75
- data/embulk-standards/src/test/java/org/embulk/standards/TestCsvTokenizer.java +0 -457
- data/embulk-standards/src/test/java/org/embulk/standards/TestJsonParserPlugin.java +0 -351
- data/embulk-standards/src/test/java/org/embulk/standards/TestRemoveColumnsFilterPlugin.java +0 -121
- data/embulk-standards/src/test/java/org/embulk/standards/TestRenameFilterPlugin.java +0 -1020
- data/embulk-standards/src/test/java/org/embulk/standards/guess/TestCsvAllStringsGuessPlugin.java +0 -38
- data/embulk-standards/src/test/java/org/embulk/standards/guess/TestCsvGuessPlugin.java +0 -248
- data/embulk-standards/src/test/java/org/embulk/standards/preview/TestFilePreview.java +0 -73
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_and_header.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_and_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_with_trim_needed.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_with_trim_needed_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_with_trim_needed_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_with_trim_needed.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_with_trim_needed_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_with_trim_needed_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_and_header.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_and_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_int_single_column_rows.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_int_single_column_rows_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_int_single_column_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_and_header.csv +0 -3
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_and_header_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_string_single_column_rows.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_string_single_column_rows_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_string_single_column_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column.csv +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_with_header.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_with_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_with_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_semicolon_delimiter.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_semicolon_delimiter_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_semicolon_delimiter_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_simple.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_simple_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_simple_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_single_quote.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_single_quote_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_single_quote_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_skip_suggest_if_empty_sample_records.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_skip_suggest_if_empty_sample_records_guessed.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_skip_suggest_if_empty_sample_records_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_with_header.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_with_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_with_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_tab_delimiter.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_tab_delimiter_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_tab_delimiter_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv_all_strings/test/test_simple.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv_all_strings/test/test_simple_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv_all_strings/test/test_simple_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes_exec.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes_load.yml +0 -19
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes_previewed.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_simple.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_simple_load.yml +0 -19
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_simple_previewed.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_expected.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_filter.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_in.yml +0 -18
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names_expected.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names_in.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_unmatched_filter.yml +0 -3
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_without_unmatched_filter.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_expected.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_filter.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_in.yml +0 -18
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_with_unmatched_filter.yml +0 -3
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_without_unmatched_filter.yml +0 -2
- data/embulk-test/build.gradle +0 -6
- data/embulk-test/src/main/java/org/embulk/test/EmbulkTests.java +0 -75
- data/embulk-test/src/main/java/org/embulk/test/PreviewResultInputPlugin.java +0 -65
- data/embulk-test/src/main/java/org/embulk/test/TestingBulkLoader.java +0 -129
- data/embulk-test/src/main/java/org/embulk/test/TestingEmbulk.java +0 -710
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +0 -5
- data/gradlew +0 -172
- data/gradlew.bat +0 -84
- data/lib/embulk/data/bundle/.bundle/config +0 -3
- data/lib/embulk/data/bundle/.ruby-version +0 -1
- data/lib/embulk/data/bundle/Gemfile +0 -31
- data/lib/embulk/data/bundle/embulk/filter/example.rb +0 -42
- data/lib/embulk/data/bundle/embulk/input/example.rb +0 -54
- data/lib/embulk/data/bundle/embulk/output/example.rb +0 -58
- data/lib/embulk/data/new/LICENSE.txt +0 -21
- data/lib/embulk/data/new/README.md.vm +0 -106
- data/lib/embulk/data/new/gitignore.vm +0 -17
- data/lib/embulk/data/new/java/build.gradle.vm +0 -96
- data/lib/embulk/data/new/java/config/checkstyle/checkstyle.xml +0 -128
- data/lib/embulk/data/new/java/config/checkstyle/default.xml +0 -108
- data/lib/embulk/data/new/java/decoder.java.vm +0 -86
- data/lib/embulk/data/new/java/encoder.java.vm +0 -88
- data/lib/embulk/data/new/java/file_input.java.vm +0 -145
- data/lib/embulk/data/new/java/file_output.java.vm +0 -95
- data/lib/embulk/data/new/java/filter.java.vm +0 -57
- data/lib/embulk/data/new/java/formatter.java.vm +0 -55
- data/lib/embulk/data/new/java/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/lib/embulk/data/new/java/gradle/wrapper/gradle-wrapper.properties +0 -5
- data/lib/embulk/data/new/java/gradlew +0 -172
- data/lib/embulk/data/new/java/gradlew.bat +0 -84
- data/lib/embulk/data/new/java/input.java.vm +0 -89
- data/lib/embulk/data/new/java/output.java.vm +0 -79
- data/lib/embulk/data/new/java/parser.java.vm +0 -61
- data/lib/embulk/data/new/java/plugin_loader.rb.vm +0 -3
- data/lib/embulk/data/new/java/test.java.vm +0 -5
- data/lib/embulk/data/new/ruby/.ruby-version +0 -1
- data/lib/embulk/data/new/ruby/Gemfile +0 -2
- data/lib/embulk/data/new/ruby/Rakefile +0 -3
- data/lib/embulk/data/new/ruby/decoder_guess.rb.vm +0 -25
- data/lib/embulk/data/new/ruby/filter.rb.vm +0 -50
- data/lib/embulk/data/new/ruby/formatter.rb.vm +0 -49
- data/lib/embulk/data/new/ruby/gemspec.vm +0 -20
- data/lib/embulk/data/new/ruby/input.rb.vm +0 -59
- data/lib/embulk/data/new/ruby/output.rb.vm +0 -61
- data/lib/embulk/data/new/ruby/parser.rb.vm +0 -44
- data/lib/embulk/data/new/ruby/parser_guess.rb.vm +0 -65
- data/lib/embulk/data/package_data.rb +0 -59
- data/lib/embulk/runner.rb +0 -53
- data/settings.gradle +0 -8
- data/test/helper.rb +0 -23
- data/test/monkey_strptime/mri/date/test_date_strptime.rb +0 -515
- data/test/monkey_strptime/run-test.rb +0 -29
- data/test/vanilla/guess/test_csv_all_strings.rb +0 -43
- data/test/vanilla/guess/test_csv_guess.rb +0 -170
- data/test/vanilla/guess/test_schema_guess.rb +0 -47
- data/test/vanilla/guess/test_time_format_guess.rb +0 -135
- data/test/vanilla/run-test.rb +0 -14
- data/test/vanilla/time/test_timestamp_parser.rb +0 -117
@@ -1,36 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Simply replaced by TaskReport.
|
5
|
-
*/
|
6
|
-
@Deprecated
|
7
|
-
public interface CommitReport
|
8
|
-
extends TaskReport
|
9
|
-
{
|
10
|
-
@Override
|
11
|
-
CommitReport getNested(String attrName);
|
12
|
-
|
13
|
-
@Override
|
14
|
-
CommitReport getNestedOrSetEmpty(String attrName);
|
15
|
-
|
16
|
-
@Override
|
17
|
-
CommitReport getNestedOrGetEmpty(String attrName);
|
18
|
-
|
19
|
-
@Override
|
20
|
-
CommitReport set(String attrName, Object v);
|
21
|
-
|
22
|
-
@Override
|
23
|
-
CommitReport setNested(String attrName, DataSource v);
|
24
|
-
|
25
|
-
@Override
|
26
|
-
CommitReport setAll(DataSource other);
|
27
|
-
|
28
|
-
@Override
|
29
|
-
CommitReport remove(String attrName);
|
30
|
-
|
31
|
-
@Override
|
32
|
-
CommitReport deepCopy();
|
33
|
-
|
34
|
-
@Override
|
35
|
-
CommitReport merge(DataSource other);
|
36
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
import java.lang.annotation.Documented;
|
4
|
-
import java.lang.annotation.ElementType;
|
5
|
-
import java.lang.annotation.Retention;
|
6
|
-
import java.lang.annotation.RetentionPolicy;
|
7
|
-
import java.lang.annotation.Target;
|
8
|
-
|
9
|
-
@Documented
|
10
|
-
@Retention(RetentionPolicy.RUNTIME)
|
11
|
-
@Target(ElementType.METHOD)
|
12
|
-
public @interface Config
|
13
|
-
{
|
14
|
-
String value();
|
15
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
import java.lang.annotation.Documented;
|
4
|
-
import java.lang.annotation.ElementType;
|
5
|
-
import java.lang.annotation.Retention;
|
6
|
-
import java.lang.annotation.RetentionPolicy;
|
7
|
-
import java.lang.annotation.Target;
|
8
|
-
|
9
|
-
@Documented
|
10
|
-
@Retention(RetentionPolicy.RUNTIME)
|
11
|
-
@Target(ElementType.METHOD)
|
12
|
-
public @interface ConfigDefault
|
13
|
-
{
|
14
|
-
String value();
|
15
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
public interface ConfigDiff
|
4
|
-
extends DataSource
|
5
|
-
{
|
6
|
-
@Override
|
7
|
-
ConfigDiff getNested(String attrName);
|
8
|
-
|
9
|
-
@Override
|
10
|
-
ConfigDiff getNestedOrSetEmpty(String attrName);
|
11
|
-
|
12
|
-
@Override
|
13
|
-
ConfigDiff getNestedOrGetEmpty(String attrName);
|
14
|
-
|
15
|
-
@Override
|
16
|
-
ConfigDiff set(String attrName, Object v);
|
17
|
-
|
18
|
-
@Override
|
19
|
-
ConfigDiff setNested(String attrName, DataSource v);
|
20
|
-
|
21
|
-
@Override
|
22
|
-
ConfigDiff setAll(DataSource other);
|
23
|
-
|
24
|
-
@Override
|
25
|
-
ConfigDiff remove(String attrName);
|
26
|
-
|
27
|
-
@Override
|
28
|
-
ConfigDiff deepCopy();
|
29
|
-
|
30
|
-
@Override
|
31
|
-
ConfigDiff merge(DataSource other);
|
32
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
public class ConfigException
|
4
|
-
extends RuntimeException
|
5
|
-
implements UserDataException
|
6
|
-
{
|
7
|
-
protected ConfigException()
|
8
|
-
{
|
9
|
-
super();
|
10
|
-
}
|
11
|
-
|
12
|
-
public ConfigException(String message)
|
13
|
-
{
|
14
|
-
super(message);
|
15
|
-
}
|
16
|
-
|
17
|
-
public ConfigException(Throwable cause)
|
18
|
-
{
|
19
|
-
super(cause);
|
20
|
-
}
|
21
|
-
|
22
|
-
public ConfigException(String message, Throwable cause)
|
23
|
-
{
|
24
|
-
super(message, cause);
|
25
|
-
}
|
26
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
import java.lang.annotation.Documented;
|
4
|
-
import java.lang.annotation.ElementType;
|
5
|
-
import java.lang.annotation.Retention;
|
6
|
-
import java.lang.annotation.RetentionPolicy;
|
7
|
-
import java.lang.annotation.Target;
|
8
|
-
|
9
|
-
@Documented
|
10
|
-
@Retention(RetentionPolicy.RUNTIME)
|
11
|
-
@Target(ElementType.METHOD)
|
12
|
-
public @interface ConfigInject
|
13
|
-
{
|
14
|
-
}
|
@@ -1,149 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
import java.io.File;
|
4
|
-
import java.io.FileInputStream;
|
5
|
-
import java.io.InputStream;
|
6
|
-
import java.io.IOException;
|
7
|
-
import java.util.Map;
|
8
|
-
import java.util.Properties;
|
9
|
-
import com.google.common.collect.ImmutableMap;
|
10
|
-
import com.google.inject.Inject;
|
11
|
-
import com.fasterxml.jackson.databind.ObjectMapper;
|
12
|
-
import com.fasterxml.jackson.core.JsonParser;
|
13
|
-
import com.fasterxml.jackson.databind.JsonNode;
|
14
|
-
import com.fasterxml.jackson.databind.RuntimeJsonMappingException;
|
15
|
-
import com.fasterxml.jackson.databind.node.ObjectNode;
|
16
|
-
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
17
|
-
import org.yaml.snakeyaml.Yaml;
|
18
|
-
import org.yaml.snakeyaml.DumperOptions;
|
19
|
-
import org.yaml.snakeyaml.representer.Representer;
|
20
|
-
import org.yaml.snakeyaml.constructor.SafeConstructor;
|
21
|
-
|
22
|
-
public class ConfigLoader
|
23
|
-
{
|
24
|
-
private final ModelManager model;
|
25
|
-
|
26
|
-
@Inject
|
27
|
-
public ConfigLoader(ModelManager model)
|
28
|
-
{
|
29
|
-
this.model = model;
|
30
|
-
}
|
31
|
-
|
32
|
-
public ConfigSource newConfigSource()
|
33
|
-
{
|
34
|
-
return new DataSourceImpl(model);
|
35
|
-
}
|
36
|
-
|
37
|
-
public ConfigSource fromJsonString(String string)
|
38
|
-
{
|
39
|
-
JsonNode node;
|
40
|
-
try {
|
41
|
-
node = new ObjectMapper().readTree(string);
|
42
|
-
}
|
43
|
-
catch (IOException ex) {
|
44
|
-
throw new RuntimeException(ex);
|
45
|
-
}
|
46
|
-
validateJsonNode(node);
|
47
|
-
return new DataSourceImpl(model, (ObjectNode) node);
|
48
|
-
}
|
49
|
-
|
50
|
-
public ConfigSource fromJsonFile(File file) throws IOException
|
51
|
-
{
|
52
|
-
try (FileInputStream is = new FileInputStream(file)) {
|
53
|
-
return fromJson(is);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
public ConfigSource fromJson(InputStream stream) throws IOException
|
58
|
-
{
|
59
|
-
JsonNode node = new ObjectMapper().readTree(stream);
|
60
|
-
validateJsonNode(node);
|
61
|
-
return new DataSourceImpl(model, (ObjectNode) node);
|
62
|
-
}
|
63
|
-
|
64
|
-
public ConfigSource fromYamlString(String string)
|
65
|
-
{
|
66
|
-
JsonNode node = objectToJson(newYaml().load(string));
|
67
|
-
validateJsonNode(node);
|
68
|
-
return new DataSourceImpl(model, (ObjectNode) node);
|
69
|
-
}
|
70
|
-
|
71
|
-
public ConfigSource fromYamlFile(File file) throws IOException
|
72
|
-
{
|
73
|
-
try (FileInputStream stream = new FileInputStream(file)) {
|
74
|
-
return fromYaml(stream);
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
public ConfigSource fromYaml(InputStream stream) throws IOException
|
79
|
-
{
|
80
|
-
JsonNode node = objectToJson(newYaml().load(stream));
|
81
|
-
validateJsonNode(node);
|
82
|
-
return new DataSourceImpl(model, (ObjectNode) node);
|
83
|
-
}
|
84
|
-
|
85
|
-
private static void validateJsonNode(JsonNode node)
|
86
|
-
{
|
87
|
-
if (!node.isObject()) {
|
88
|
-
throw new RuntimeJsonMappingException("Expected object to load ConfigSource but got "+node);
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
@Deprecated
|
93
|
-
public ConfigSource fromJson(JsonParser parser) throws IOException
|
94
|
-
{
|
95
|
-
// TODO check parsed.isObject()
|
96
|
-
ObjectNode source = (ObjectNode) new ObjectMapper().readTree(parser);
|
97
|
-
return new DataSourceImpl(model, source);
|
98
|
-
}
|
99
|
-
|
100
|
-
public ConfigSource fromPropertiesYamlLiteral(Properties props, String keyPrefix)
|
101
|
-
{
|
102
|
-
ImmutableMap.Builder<String, String> builder = ImmutableMap.builder();
|
103
|
-
for (String propName : props.stringPropertyNames()) {
|
104
|
-
builder.put(propName, props.getProperty(propName));
|
105
|
-
}
|
106
|
-
return fromPropertiesYamlLiteral(builder.build(), keyPrefix);
|
107
|
-
}
|
108
|
-
|
109
|
-
public ConfigSource fromPropertiesYamlLiteral(Map<String, String> props, String keyPrefix)
|
110
|
-
{
|
111
|
-
ObjectNode source = new ObjectNode(JsonNodeFactory.instance);
|
112
|
-
DataSource ds = new DataSourceImpl(model, source);
|
113
|
-
Yaml yaml = newYaml();
|
114
|
-
for (Map.Entry<String, String> pair : props.entrySet()) {
|
115
|
-
if (!pair.getKey().startsWith(keyPrefix)) {
|
116
|
-
continue;
|
117
|
-
}
|
118
|
-
String keyName = pair.getKey().substring(keyPrefix.length());
|
119
|
-
Object parsedValue = yaml.load(pair.getValue()); // TODO exception handling
|
120
|
-
JsonNode node = objectToJson(parsedValue);
|
121
|
-
|
122
|
-
// handle "." as a map acccessor. for example:
|
123
|
-
// in.parser.type=csv => {"in": {"parser": {"type": "csv"}}}
|
124
|
-
// TODO handle "[]" as array index
|
125
|
-
String[] fragments = keyName.split("\\.");
|
126
|
-
DataSource key = ds;
|
127
|
-
for (int i=0; i < fragments.length - 1; i++) {
|
128
|
-
key = key.getNestedOrSetEmpty(fragments[i]); // TODO exception handling
|
129
|
-
}
|
130
|
-
key.set(fragments[fragments.length - 1], node);
|
131
|
-
}
|
132
|
-
return new DataSourceImpl(model, source);
|
133
|
-
}
|
134
|
-
|
135
|
-
private JsonNode objectToJson(Object object)
|
136
|
-
{
|
137
|
-
ObjectMapper objectMapper = new ObjectMapper();
|
138
|
-
try {
|
139
|
-
return objectMapper.readTree(objectMapper.writeValueAsString(object));
|
140
|
-
} catch (IOException ex) {
|
141
|
-
throw new RuntimeException(ex);
|
142
|
-
}
|
143
|
-
}
|
144
|
-
|
145
|
-
private Yaml newYaml()
|
146
|
-
{
|
147
|
-
return new Yaml(new SafeConstructor(), new Representer(), new DumperOptions(), new YamlTagResolver());
|
148
|
-
}
|
149
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
public interface ConfigSource
|
4
|
-
extends DataSource
|
5
|
-
{
|
6
|
-
<T> T loadConfig(Class<T> taskType);
|
7
|
-
|
8
|
-
@Override
|
9
|
-
ConfigSource getNested(String attrName);
|
10
|
-
|
11
|
-
@Override
|
12
|
-
ConfigSource getNestedOrSetEmpty(String attrName);
|
13
|
-
|
14
|
-
@Override
|
15
|
-
ConfigSource getNestedOrGetEmpty(String attrName);
|
16
|
-
|
17
|
-
@Override
|
18
|
-
ConfigSource set(String attrName, Object v);
|
19
|
-
|
20
|
-
@Override
|
21
|
-
ConfigSource setNested(String attrName, DataSource v);
|
22
|
-
|
23
|
-
@Override
|
24
|
-
ConfigSource setAll(DataSource other);
|
25
|
-
|
26
|
-
@Override
|
27
|
-
ConfigSource remove(String attrName);
|
28
|
-
|
29
|
-
@Override
|
30
|
-
ConfigSource deepCopy();
|
31
|
-
|
32
|
-
@Override
|
33
|
-
ConfigSource merge(DataSource other);
|
34
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
import java.util.List;
|
4
|
-
import java.util.Map;
|
5
|
-
import com.fasterxml.jackson.databind.JsonNode;
|
6
|
-
import com.fasterxml.jackson.databind.node.ObjectNode;
|
7
|
-
|
8
|
-
public interface DataSource
|
9
|
-
{
|
10
|
-
List<String> getAttributeNames();
|
11
|
-
|
12
|
-
Iterable<Map.Entry<String, JsonNode>> getAttributes();
|
13
|
-
|
14
|
-
boolean isEmpty();
|
15
|
-
|
16
|
-
boolean has(String attrName);
|
17
|
-
|
18
|
-
<E> E get(Class<E> type, String attrName);
|
19
|
-
|
20
|
-
<E> E get(Class<E> type, String attrName, E defaultValue);
|
21
|
-
|
22
|
-
DataSource getNested(String attrName);
|
23
|
-
|
24
|
-
DataSource getNestedOrSetEmpty(String attrName);
|
25
|
-
|
26
|
-
DataSource getNestedOrGetEmpty(String attrName);
|
27
|
-
|
28
|
-
DataSource set(String attrName, Object v);
|
29
|
-
|
30
|
-
DataSource setNested(String attrName, DataSource v);
|
31
|
-
|
32
|
-
DataSource setAll(DataSource other);
|
33
|
-
|
34
|
-
DataSource remove(String attrName);
|
35
|
-
|
36
|
-
DataSource deepCopy();
|
37
|
-
|
38
|
-
DataSource merge(DataSource other);
|
39
|
-
|
40
|
-
ObjectNode getObjectNode();
|
41
|
-
}
|
@@ -1,243 +0,0 @@
|
|
1
|
-
package org.embulk.config;
|
2
|
-
|
3
|
-
import java.util.List;
|
4
|
-
import java.util.Map;
|
5
|
-
import java.util.Iterator;
|
6
|
-
import com.google.common.collect.ImmutableList;
|
7
|
-
import com.fasterxml.jackson.databind.JsonNode;
|
8
|
-
import com.fasterxml.jackson.databind.node.ObjectNode;
|
9
|
-
import com.fasterxml.jackson.databind.node.ArrayNode;
|
10
|
-
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
11
|
-
|
12
|
-
public class DataSourceImpl
|
13
|
-
implements ConfigSource, TaskSource, TaskReport, /* Deprecated */ CommitReport, ConfigDiff
|
14
|
-
{
|
15
|
-
protected final ObjectNode data;
|
16
|
-
protected final ModelManager model;
|
17
|
-
|
18
|
-
public DataSourceImpl(ModelManager model)
|
19
|
-
{
|
20
|
-
this(model, new ObjectNode(JsonNodeFactory.instance));
|
21
|
-
}
|
22
|
-
|
23
|
-
// visible for DataSourceSerDe, ConfigSourceLoader and TaskInvocationHandler.dump
|
24
|
-
public DataSourceImpl(ModelManager model, ObjectNode data)
|
25
|
-
{
|
26
|
-
this.data = data;
|
27
|
-
this.model = model;
|
28
|
-
}
|
29
|
-
|
30
|
-
protected DataSourceImpl newInstance(ModelManager model, ObjectNode data)
|
31
|
-
{
|
32
|
-
return new DataSourceImpl(model, (ObjectNode) data);
|
33
|
-
}
|
34
|
-
|
35
|
-
// visible for DataSourceSerDe.DataSourceSerializer
|
36
|
-
@Override
|
37
|
-
public ObjectNode getObjectNode()
|
38
|
-
{
|
39
|
-
return data;
|
40
|
-
}
|
41
|
-
|
42
|
-
@Override
|
43
|
-
public List<String> getAttributeNames()
|
44
|
-
{
|
45
|
-
return ImmutableList.copyOf(data.fieldNames());
|
46
|
-
}
|
47
|
-
|
48
|
-
@Override
|
49
|
-
public Iterable<Map.Entry<String, JsonNode>> getAttributes()
|
50
|
-
{
|
51
|
-
return new Iterable<Map.Entry<String,JsonNode>>() {
|
52
|
-
public Iterator<Map.Entry<String, JsonNode>> iterator()
|
53
|
-
{
|
54
|
-
return data.fields();
|
55
|
-
}
|
56
|
-
};
|
57
|
-
}
|
58
|
-
|
59
|
-
@Override
|
60
|
-
public boolean isEmpty()
|
61
|
-
{
|
62
|
-
return !data.fieldNames().hasNext();
|
63
|
-
}
|
64
|
-
|
65
|
-
@Override
|
66
|
-
public boolean has(String attrName)
|
67
|
-
{
|
68
|
-
return data.has(attrName);
|
69
|
-
}
|
70
|
-
|
71
|
-
@Override
|
72
|
-
public <E> E get(Class<E> type, String attrName)
|
73
|
-
{
|
74
|
-
JsonNode json = data.get(attrName);
|
75
|
-
if (json == null) {
|
76
|
-
throw new ConfigException("Attribute "+attrName+" is required but not set");
|
77
|
-
}
|
78
|
-
return model.readObject(type, json.traverse());
|
79
|
-
}
|
80
|
-
|
81
|
-
@Override
|
82
|
-
public <E> E get(Class<E> type, String attrName, E defaultValue)
|
83
|
-
{
|
84
|
-
JsonNode json = data.get(attrName);
|
85
|
-
if (json == null) {
|
86
|
-
return defaultValue;
|
87
|
-
}
|
88
|
-
return model.readObject(type, json.traverse());
|
89
|
-
}
|
90
|
-
|
91
|
-
@Override
|
92
|
-
public DataSourceImpl getNested(String attrName)
|
93
|
-
{
|
94
|
-
JsonNode json = data.get(attrName);
|
95
|
-
if (json == null) {
|
96
|
-
throw new ConfigException("Attribute "+attrName+" is required but not set");
|
97
|
-
}
|
98
|
-
if (!json.isObject()) {
|
99
|
-
throw new ConfigException("Attribute "+attrName+" must be an object");
|
100
|
-
}
|
101
|
-
return newInstance(model, (ObjectNode) json);
|
102
|
-
}
|
103
|
-
|
104
|
-
@Override
|
105
|
-
public DataSourceImpl getNestedOrSetEmpty(String attrName)
|
106
|
-
{
|
107
|
-
JsonNode json = data.get(attrName);
|
108
|
-
if (json == null) {
|
109
|
-
json = data.objectNode();
|
110
|
-
data.set(attrName, json);
|
111
|
-
} else if (!json.isObject()) {
|
112
|
-
throw new ConfigException("Attribute "+attrName+" must be an object");
|
113
|
-
}
|
114
|
-
return newInstance(model, (ObjectNode) json);
|
115
|
-
}
|
116
|
-
|
117
|
-
@Override
|
118
|
-
public DataSourceImpl getNestedOrGetEmpty(String attrName)
|
119
|
-
{
|
120
|
-
JsonNode json = data.get(attrName);
|
121
|
-
if (json == null) {
|
122
|
-
json = data.objectNode();
|
123
|
-
} else if (!json.isObject()) {
|
124
|
-
throw new ConfigException("Attribute "+attrName+" must be an object");
|
125
|
-
}
|
126
|
-
return newInstance(model, (ObjectNode) json);
|
127
|
-
}
|
128
|
-
|
129
|
-
@Override
|
130
|
-
public DataSourceImpl set(String attrName, Object v)
|
131
|
-
{
|
132
|
-
if (v == null) {
|
133
|
-
remove(attrName);
|
134
|
-
} else {
|
135
|
-
data.set(attrName, model.writeObjectAsJsonNode(v));
|
136
|
-
}
|
137
|
-
return this;
|
138
|
-
}
|
139
|
-
|
140
|
-
@Override
|
141
|
-
public DataSourceImpl setNested(String attrName, DataSource v)
|
142
|
-
{
|
143
|
-
data.set(attrName, v.getObjectNode());
|
144
|
-
return this;
|
145
|
-
}
|
146
|
-
|
147
|
-
@Override
|
148
|
-
public DataSourceImpl setAll(DataSource other)
|
149
|
-
{
|
150
|
-
for (Map.Entry<String, JsonNode> field : other.getAttributes()) {
|
151
|
-
data.set(field.getKey(), field.getValue());
|
152
|
-
}
|
153
|
-
return this;
|
154
|
-
}
|
155
|
-
|
156
|
-
@Override
|
157
|
-
public DataSourceImpl remove(String attrName)
|
158
|
-
{
|
159
|
-
data.remove(attrName);
|
160
|
-
return this;
|
161
|
-
}
|
162
|
-
|
163
|
-
@Override
|
164
|
-
public DataSourceImpl deepCopy()
|
165
|
-
{
|
166
|
-
return newInstance(model, data.deepCopy());
|
167
|
-
}
|
168
|
-
|
169
|
-
@Override
|
170
|
-
public DataSourceImpl merge(DataSource other)
|
171
|
-
{
|
172
|
-
mergeJsonObject(data, other.deepCopy().getObjectNode());
|
173
|
-
return this;
|
174
|
-
}
|
175
|
-
|
176
|
-
private static void mergeJsonObject(ObjectNode src, ObjectNode other)
|
177
|
-
{
|
178
|
-
Iterator<Map.Entry<String, JsonNode>> ite = other.fields();
|
179
|
-
while (ite.hasNext()) {
|
180
|
-
Map.Entry<String, JsonNode> pair = ite.next();
|
181
|
-
JsonNode s = src.get(pair.getKey());
|
182
|
-
JsonNode v = pair.getValue();
|
183
|
-
if (v.isObject() && s != null && s.isObject()) {
|
184
|
-
mergeJsonObject((ObjectNode) s, (ObjectNode) v);
|
185
|
-
} else if (v.isArray() && s != null && s.isArray()) {
|
186
|
-
mergeJsonArray((ArrayNode) s, (ArrayNode) v);
|
187
|
-
} else {
|
188
|
-
src.replace(pair.getKey(), v);
|
189
|
-
}
|
190
|
-
}
|
191
|
-
}
|
192
|
-
|
193
|
-
private static void mergeJsonArray(ArrayNode src, ArrayNode other)
|
194
|
-
{
|
195
|
-
for (int i=0; i < other.size(); i++) {
|
196
|
-
JsonNode s = src.get(i);
|
197
|
-
JsonNode v = other.get(i);
|
198
|
-
if (s == null) {
|
199
|
-
src.add(v);
|
200
|
-
} else if (v.isObject() && s.isObject()) {
|
201
|
-
mergeJsonObject((ObjectNode) s, (ObjectNode) v);
|
202
|
-
} else if (v.isArray() && s.isArray()) {
|
203
|
-
mergeJsonArray((ArrayNode) s, (ArrayNode) v);
|
204
|
-
} else {
|
205
|
-
src.remove(i);
|
206
|
-
src.insert(i, v);
|
207
|
-
}
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
@Override
|
212
|
-
public <T> T loadTask(Class<T> taskType)
|
213
|
-
{
|
214
|
-
return model.readObject(taskType, data.traverse());
|
215
|
-
}
|
216
|
-
|
217
|
-
@Override
|
218
|
-
public <T> T loadConfig(Class<T> taskType)
|
219
|
-
{
|
220
|
-
return model.readObjectWithConfigSerDe(taskType, data.traverse());
|
221
|
-
}
|
222
|
-
|
223
|
-
@Override
|
224
|
-
public String toString()
|
225
|
-
{
|
226
|
-
return data.toString();
|
227
|
-
}
|
228
|
-
|
229
|
-
@Override
|
230
|
-
public boolean equals(Object other)
|
231
|
-
{
|
232
|
-
if (!(other instanceof DataSource)) {
|
233
|
-
return false;
|
234
|
-
}
|
235
|
-
return data.equals(((DataSource) other).getObjectNode());
|
236
|
-
}
|
237
|
-
|
238
|
-
@Override
|
239
|
-
public int hashCode()
|
240
|
-
{
|
241
|
-
return data.hashCode();
|
242
|
-
}
|
243
|
-
}
|