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,62 +0,0 @@
|
|
1
|
-
/* IMPORTANT: must compile with JFlex 1.4, JFlex 1.4.3 seems buggy with look-ahead */
|
2
|
-
|
3
|
-
package org.embulk.spi.time.lexer;
|
4
|
-
|
5
|
-
import org.embulk.spi.time.StrptimeToken;
|
6
|
-
|
7
|
-
%%
|
8
|
-
%public
|
9
|
-
%class StrptimeLexer
|
10
|
-
//%debug
|
11
|
-
%unicode
|
12
|
-
%type org.embulk.spi.time.StrptimeToken
|
13
|
-
%{
|
14
|
-
StringBuilder stringBuf = new StringBuilder();
|
15
|
-
|
16
|
-
public StrptimeToken rawString() {
|
17
|
-
String str = stringBuf.toString();
|
18
|
-
stringBuf.setLength(0);
|
19
|
-
return StrptimeToken.str(str);
|
20
|
-
}
|
21
|
-
|
22
|
-
public StrptimeToken directive(char c) {
|
23
|
-
StrptimeToken token;
|
24
|
-
if (c == 'z') {
|
25
|
-
int colons = yylength()-1; // can only be colons except the 'z'
|
26
|
-
return StrptimeToken.zoneOffsetColons(colons);
|
27
|
-
} else if ((token = StrptimeToken.format(c)) != null) {
|
28
|
-
return token;
|
29
|
-
} else {
|
30
|
-
return StrptimeToken.special(c);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
%}
|
34
|
-
|
35
|
-
Flags = [-_0#\^]+
|
36
|
-
Width = [1-9][0-9]*
|
37
|
-
|
38
|
-
// See RubyDateFormatter.main to generate this
|
39
|
-
// Chars are sorted by | ruby -e 'p STDIN.each_char.sort{|a,b|a.casecmp(b).tap{|c|break a<=>b if c==0}}.join'
|
40
|
-
Conversion = [\+AaBbCcDdeFGgHhIjkLlMmNnPpQRrSsTtUuVvWwXxYyZz] | {IgnoredModifier} | {Zone}
|
41
|
-
// From MRI strftime.c
|
42
|
-
IgnoredModifier = E[CcXxYy] | O[deHIMmSUuVWwy]
|
43
|
-
Zone = :{1,3} z
|
44
|
-
|
45
|
-
SimpleDirective = "%"
|
46
|
-
LiteralPercent = "%%"
|
47
|
-
Unknown = .|\n
|
48
|
-
|
49
|
-
%xstate CONVERSION
|
50
|
-
|
51
|
-
%%
|
52
|
-
|
53
|
-
<YYINITIAL> {
|
54
|
-
{LiteralPercent} { return StrptimeToken.str("%"); }
|
55
|
-
{SimpleDirective} / {Conversion} { yybegin(CONVERSION); }
|
56
|
-
}
|
57
|
-
|
58
|
-
<CONVERSION> {Conversion} { yybegin(YYINITIAL); return directive(yycharat(yylength()-1)); }
|
59
|
-
|
60
|
-
/* fallback */
|
61
|
-
{Unknown} / [^%] { stringBuf.append(yycharat(0)); }
|
62
|
-
{Unknown} { stringBuf.append(yycharat(0)); return rawString(); }
|
@@ -1,577 +0,0 @@
|
|
1
|
-
/* The following code was generated by JFlex 1.4 on 5/6/17 4:40 AM */
|
2
|
-
|
3
|
-
/* IMPORTANT: must compile with JFlex 1.4, JFlex 1.4.3 seems buggy with look-ahead */
|
4
|
-
|
5
|
-
package org.embulk.spi.time.lexer;
|
6
|
-
|
7
|
-
import org.embulk.spi.time.StrptimeToken;
|
8
|
-
|
9
|
-
|
10
|
-
/**
|
11
|
-
* This class is a scanner generated by
|
12
|
-
* <a href="http://www.jflex.de/">JFlex</a> 1.4
|
13
|
-
* on 5/6/17 4:40 AM from the specification file
|
14
|
-
* <tt>embulk-jruby-strptime/src/main/java/org/embulk/spi/time/lexer/StrptimeLexer.flex</tt>
|
15
|
-
*/
|
16
|
-
public class StrptimeLexer {
|
17
|
-
|
18
|
-
/** This character denotes the end of file */
|
19
|
-
public static final int YYEOF = -1;
|
20
|
-
|
21
|
-
/** initial size of the lookahead buffer */
|
22
|
-
private static final int ZZ_BUFFERSIZE = 16384;
|
23
|
-
|
24
|
-
/** lexical states */
|
25
|
-
public static final int CONVERSION = 1;
|
26
|
-
public static final int YYINITIAL = 0;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Translates characters to character classes
|
30
|
-
*/
|
31
|
-
private static final String ZZ_CMAP_PACKED =
|
32
|
-
"\12\0\1\0\30\0\1\0\1\0\1\11\5\0\1\1\1\0\1\0"+
|
33
|
-
"\2\0\1\0\11\0\1\7\6\0\2\1\1\3\1\1\1\2\2\1"+
|
34
|
-
"\2\5\2\0\1\1\1\5\1\1\1\4\3\1\1\5\1\1\3\5"+
|
35
|
-
"\2\3\1\1\3\0\2\0\1\0\2\1\1\3\2\5\1\0\2\1"+
|
36
|
-
"\1\0\3\1\1\5\1\1\1\0\1\1\1\0\3\1\1\5\1\1"+
|
37
|
-
"\1\5\1\3\1\6\1\10\uff85\0";
|
38
|
-
|
39
|
-
/**
|
40
|
-
* Translates characters to character classes
|
41
|
-
*/
|
42
|
-
private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
|
43
|
-
|
44
|
-
/**
|
45
|
-
* Translates DFA states to action switch labels.
|
46
|
-
*/
|
47
|
-
private static final int [] ZZ_ACTION = zzUnpackAction();
|
48
|
-
|
49
|
-
private static final String ZZ_ACTION_PACKED_0 =
|
50
|
-
"\2\0\2\1\1\2\3\0\1\3\1\4\3\3\1\5"+
|
51
|
-
"\4\0";
|
52
|
-
|
53
|
-
private static int [] zzUnpackAction() {
|
54
|
-
int [] result = new int[18];
|
55
|
-
int offset = 0;
|
56
|
-
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
|
57
|
-
return result;
|
58
|
-
}
|
59
|
-
|
60
|
-
private static int zzUnpackAction(String packed, int offset, int [] result) {
|
61
|
-
int i = 0; /* index in packed string */
|
62
|
-
int j = offset; /* index in unpacked array */
|
63
|
-
int l = packed.length();
|
64
|
-
while (i < l) {
|
65
|
-
int count = packed.charAt(i++);
|
66
|
-
int value = packed.charAt(i++);
|
67
|
-
do result[j++] = value; while (--count > 0);
|
68
|
-
}
|
69
|
-
return j;
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Translates a state to a row index in the transition table
|
75
|
-
*/
|
76
|
-
private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
|
77
|
-
|
78
|
-
private static final String ZZ_ROWMAP_PACKED_0 =
|
79
|
-
"\0\0\0\12\0\24\0\36\0\50\0\62\0\74\0\106"+
|
80
|
-
"\0\50\0\50\0\120\0\132\0\144\0\50\0\156\0\170"+
|
81
|
-
"\0\202\0\214";
|
82
|
-
|
83
|
-
private static int [] zzUnpackRowMap() {
|
84
|
-
int [] result = new int[18];
|
85
|
-
int offset = 0;
|
86
|
-
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
|
87
|
-
return result;
|
88
|
-
}
|
89
|
-
|
90
|
-
private static int zzUnpackRowMap(String packed, int offset, int [] result) {
|
91
|
-
int i = 0; /* index in packed string */
|
92
|
-
int j = offset; /* index in unpacked array */
|
93
|
-
int l = packed.length();
|
94
|
-
while (i < l) {
|
95
|
-
int high = packed.charAt(i++) << 16;
|
96
|
-
result[j++] = high | packed.charAt(i++);
|
97
|
-
}
|
98
|
-
return j;
|
99
|
-
}
|
100
|
-
|
101
|
-
/**
|
102
|
-
* The transition table of the DFA
|
103
|
-
*/
|
104
|
-
private static final int [] ZZ_TRANS = zzUnpackTrans();
|
105
|
-
|
106
|
-
private static final String ZZ_TRANS_PACKED_0 =
|
107
|
-
"\11\3\1\4\1\0\1\5\1\6\1\5\1\7\2\5"+
|
108
|
-
"\1\10\1\5\1\0\11\11\1\0\1\11\1\12\1\13"+
|
109
|
-
"\1\12\1\14\2\12\1\15\1\12\1\16\15\0\1\5"+
|
110
|
-
"\2\0\1\5\10\0\2\5\12\0\1\17\1\5\4\0"+
|
111
|
-
"\1\12\2\0\1\12\10\0\2\12\12\0\1\20\1\12"+
|
112
|
-
"\10\0\1\21\1\5\10\0\1\22\1\12\11\0\1\5"+
|
113
|
-
"\11\0\1\12\1\0";
|
114
|
-
|
115
|
-
private static int [] zzUnpackTrans() {
|
116
|
-
int [] result = new int[150];
|
117
|
-
int offset = 0;
|
118
|
-
offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
|
119
|
-
return result;
|
120
|
-
}
|
121
|
-
|
122
|
-
private static int zzUnpackTrans(String packed, int offset, int [] result) {
|
123
|
-
int i = 0; /* index in packed string */
|
124
|
-
int j = offset; /* index in unpacked array */
|
125
|
-
int l = packed.length();
|
126
|
-
while (i < l) {
|
127
|
-
int count = packed.charAt(i++);
|
128
|
-
int value = packed.charAt(i++);
|
129
|
-
value--;
|
130
|
-
do result[j++] = value; while (--count > 0);
|
131
|
-
}
|
132
|
-
return j;
|
133
|
-
}
|
134
|
-
|
135
|
-
|
136
|
-
/* error codes */
|
137
|
-
private static final int ZZ_UNKNOWN_ERROR = 0;
|
138
|
-
private static final int ZZ_NO_MATCH = 1;
|
139
|
-
private static final int ZZ_PUSHBACK_2BIG = 2;
|
140
|
-
|
141
|
-
/* error messages for the codes above */
|
142
|
-
private static final String ZZ_ERROR_MSG[] = {
|
143
|
-
"Unkown internal scanner error",
|
144
|
-
"Error: could not match input",
|
145
|
-
"Error: pushback value was too large"
|
146
|
-
};
|
147
|
-
|
148
|
-
/**
|
149
|
-
* ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
|
150
|
-
*/
|
151
|
-
private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
|
152
|
-
|
153
|
-
private static final String ZZ_ATTRIBUTE_PACKED_0 =
|
154
|
-
"\2\0\2\3\1\11\3\0\2\15\3\5\1\11\4\0";
|
155
|
-
|
156
|
-
private static int [] zzUnpackAttribute() {
|
157
|
-
int [] result = new int[18];
|
158
|
-
int offset = 0;
|
159
|
-
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
|
160
|
-
return result;
|
161
|
-
}
|
162
|
-
|
163
|
-
private static int zzUnpackAttribute(String packed, int offset, int [] result) {
|
164
|
-
int i = 0; /* index in packed string */
|
165
|
-
int j = offset; /* index in unpacked array */
|
166
|
-
int l = packed.length();
|
167
|
-
while (i < l) {
|
168
|
-
int count = packed.charAt(i++);
|
169
|
-
int value = packed.charAt(i++);
|
170
|
-
do result[j++] = value; while (--count > 0);
|
171
|
-
}
|
172
|
-
return j;
|
173
|
-
}
|
174
|
-
|
175
|
-
/** the input device */
|
176
|
-
private java.io.Reader zzReader;
|
177
|
-
|
178
|
-
/** the current state of the DFA */
|
179
|
-
private int zzState;
|
180
|
-
|
181
|
-
/** the current lexical state */
|
182
|
-
private int zzLexicalState = YYINITIAL;
|
183
|
-
|
184
|
-
/** this buffer contains the current text to be matched and is
|
185
|
-
the source of the yytext() string */
|
186
|
-
private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
|
187
|
-
|
188
|
-
/** the textposition at the last accepting state */
|
189
|
-
private int zzMarkedPos;
|
190
|
-
|
191
|
-
/** the textposition at the last state to be included in yytext */
|
192
|
-
private int zzPushbackPos;
|
193
|
-
|
194
|
-
/** the current text position in the buffer */
|
195
|
-
private int zzCurrentPos;
|
196
|
-
|
197
|
-
/** startRead marks the beginning of the yytext() string in the buffer */
|
198
|
-
private int zzStartRead;
|
199
|
-
|
200
|
-
/** endRead marks the last character in the buffer, that has been read
|
201
|
-
from input */
|
202
|
-
private int zzEndRead;
|
203
|
-
|
204
|
-
/** number of newlines encountered up to the start of the matched text */
|
205
|
-
private int yyline;
|
206
|
-
|
207
|
-
/** the number of characters up to the start of the matched text */
|
208
|
-
private int yychar;
|
209
|
-
|
210
|
-
/**
|
211
|
-
* the number of characters from the last newline up to the start of the
|
212
|
-
* matched text
|
213
|
-
*/
|
214
|
-
private int yycolumn;
|
215
|
-
|
216
|
-
/**
|
217
|
-
* zzAtBOL == true <=> the scanner is currently at the beginning of a line
|
218
|
-
*/
|
219
|
-
private boolean zzAtBOL = true;
|
220
|
-
|
221
|
-
/** zzAtEOF == true <=> the scanner is at the EOF */
|
222
|
-
private boolean zzAtEOF;
|
223
|
-
|
224
|
-
/* user code: */
|
225
|
-
StringBuilder stringBuf = new StringBuilder();
|
226
|
-
|
227
|
-
public StrptimeToken rawString() {
|
228
|
-
String str = stringBuf.toString();
|
229
|
-
stringBuf.setLength(0);
|
230
|
-
return StrptimeToken.str(str);
|
231
|
-
}
|
232
|
-
|
233
|
-
public StrptimeToken directive(char c) {
|
234
|
-
StrptimeToken token;
|
235
|
-
if (c == 'z') {
|
236
|
-
int colons = yylength()-1; // can only be colons except the 'z'
|
237
|
-
return StrptimeToken.zoneOffsetColons(colons);
|
238
|
-
} else if ((token = StrptimeToken.format(c)) != null) {
|
239
|
-
return token;
|
240
|
-
} else {
|
241
|
-
return StrptimeToken.special(c);
|
242
|
-
}
|
243
|
-
}
|
244
|
-
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Creates a new scanner
|
248
|
-
* There is also a java.io.InputStream version of this constructor.
|
249
|
-
*
|
250
|
-
* @param in the java.io.Reader to read input from.
|
251
|
-
*/
|
252
|
-
public StrptimeLexer(java.io.Reader in) {
|
253
|
-
this.zzReader = in;
|
254
|
-
}
|
255
|
-
|
256
|
-
/**
|
257
|
-
* Creates a new scanner.
|
258
|
-
* There is also java.io.Reader version of this constructor.
|
259
|
-
*
|
260
|
-
* @param in the java.io.Inputstream to read input from.
|
261
|
-
*/
|
262
|
-
public StrptimeLexer(java.io.InputStream in) {
|
263
|
-
this(new java.io.InputStreamReader(in));
|
264
|
-
}
|
265
|
-
|
266
|
-
/**
|
267
|
-
* Unpacks the compressed character translation table.
|
268
|
-
*
|
269
|
-
* @param packed the packed character translation table
|
270
|
-
* @return the unpacked character translation table
|
271
|
-
*/
|
272
|
-
private static char [] zzUnpackCMap(String packed) {
|
273
|
-
char [] map = new char[0x10000];
|
274
|
-
int i = 0; /* index in packed string */
|
275
|
-
int j = 0; /* index in unpacked array */
|
276
|
-
while (i < 110) {
|
277
|
-
int count = packed.charAt(i++);
|
278
|
-
char value = packed.charAt(i++);
|
279
|
-
do map[j++] = value; while (--count > 0);
|
280
|
-
}
|
281
|
-
return map;
|
282
|
-
}
|
283
|
-
|
284
|
-
|
285
|
-
/**
|
286
|
-
* Refills the input buffer.
|
287
|
-
*
|
288
|
-
* @return <code>false</code>, iff there was new input.
|
289
|
-
*
|
290
|
-
* @exception java.io.IOException if any I/O-Error occurs
|
291
|
-
*/
|
292
|
-
private boolean zzRefill() throws java.io.IOException {
|
293
|
-
|
294
|
-
/* first: make room (if you can) */
|
295
|
-
if (zzStartRead > 0) {
|
296
|
-
System.arraycopy(zzBuffer, zzStartRead,
|
297
|
-
zzBuffer, 0,
|
298
|
-
zzEndRead-zzStartRead);
|
299
|
-
|
300
|
-
/* translate stored positions */
|
301
|
-
zzEndRead-= zzStartRead;
|
302
|
-
zzCurrentPos-= zzStartRead;
|
303
|
-
zzMarkedPos-= zzStartRead;
|
304
|
-
zzPushbackPos-= zzStartRead;
|
305
|
-
zzStartRead = 0;
|
306
|
-
}
|
307
|
-
|
308
|
-
/* is the buffer big enough? */
|
309
|
-
if (zzCurrentPos >= zzBuffer.length) {
|
310
|
-
/* if not: blow it up */
|
311
|
-
char newBuffer[] = new char[zzCurrentPos*2];
|
312
|
-
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
|
313
|
-
zzBuffer = newBuffer;
|
314
|
-
}
|
315
|
-
|
316
|
-
/* finally: fill the buffer with new input */
|
317
|
-
int numRead = zzReader.read(zzBuffer, zzEndRead,
|
318
|
-
zzBuffer.length-zzEndRead);
|
319
|
-
|
320
|
-
if (numRead < 0) {
|
321
|
-
return true;
|
322
|
-
}
|
323
|
-
else {
|
324
|
-
zzEndRead+= numRead;
|
325
|
-
return false;
|
326
|
-
}
|
327
|
-
}
|
328
|
-
|
329
|
-
|
330
|
-
/**
|
331
|
-
* Closes the input stream.
|
332
|
-
*/
|
333
|
-
public final void yyclose() throws java.io.IOException {
|
334
|
-
zzAtEOF = true; /* indicate end of file */
|
335
|
-
zzEndRead = zzStartRead; /* invalidate buffer */
|
336
|
-
|
337
|
-
if (zzReader != null)
|
338
|
-
zzReader.close();
|
339
|
-
}
|
340
|
-
|
341
|
-
|
342
|
-
/**
|
343
|
-
* Resets the scanner to read from a new input stream.
|
344
|
-
* Does not close the old reader.
|
345
|
-
*
|
346
|
-
* All internal variables are reset, the old input stream
|
347
|
-
* <b>cannot</b> be reused (internal buffer is discarded and lost).
|
348
|
-
* Lexical state is set to <tt>ZZ_INITIAL</tt>.
|
349
|
-
*
|
350
|
-
* @param reader the new input stream
|
351
|
-
*/
|
352
|
-
public final void yyreset(java.io.Reader reader) {
|
353
|
-
zzReader = reader;
|
354
|
-
zzAtBOL = true;
|
355
|
-
zzAtEOF = false;
|
356
|
-
zzEndRead = zzStartRead = 0;
|
357
|
-
zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;
|
358
|
-
yyline = yychar = yycolumn = 0;
|
359
|
-
zzLexicalState = YYINITIAL;
|
360
|
-
}
|
361
|
-
|
362
|
-
|
363
|
-
/**
|
364
|
-
* Returns the current lexical state.
|
365
|
-
*/
|
366
|
-
public final int yystate() {
|
367
|
-
return zzLexicalState;
|
368
|
-
}
|
369
|
-
|
370
|
-
|
371
|
-
/**
|
372
|
-
* Enters a new lexical state
|
373
|
-
*
|
374
|
-
* @param newState the new lexical state
|
375
|
-
*/
|
376
|
-
public final void yybegin(int newState) {
|
377
|
-
zzLexicalState = newState;
|
378
|
-
}
|
379
|
-
|
380
|
-
|
381
|
-
/**
|
382
|
-
* Returns the text matched by the current regular expression.
|
383
|
-
*/
|
384
|
-
public final String yytext() {
|
385
|
-
return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
|
386
|
-
}
|
387
|
-
|
388
|
-
|
389
|
-
/**
|
390
|
-
* Returns the character at position <tt>pos</tt> from the
|
391
|
-
* matched text.
|
392
|
-
*
|
393
|
-
* It is equivalent to yytext().charAt(pos), but faster
|
394
|
-
*
|
395
|
-
* @param pos the position of the character to fetch.
|
396
|
-
* A value from 0 to yylength()-1.
|
397
|
-
*
|
398
|
-
* @return the character at position pos
|
399
|
-
*/
|
400
|
-
public final char yycharat(int pos) {
|
401
|
-
return zzBuffer[zzStartRead+pos];
|
402
|
-
}
|
403
|
-
|
404
|
-
|
405
|
-
/**
|
406
|
-
* Returns the length of the matched text region.
|
407
|
-
*/
|
408
|
-
public final int yylength() {
|
409
|
-
return zzMarkedPos-zzStartRead;
|
410
|
-
}
|
411
|
-
|
412
|
-
|
413
|
-
/**
|
414
|
-
* Reports an error that occured while scanning.
|
415
|
-
*
|
416
|
-
* In a wellformed scanner (no or only correct usage of
|
417
|
-
* yypushback(int) and a match-all fallback rule) this method
|
418
|
-
* will only be called with things that "Can't Possibly Happen".
|
419
|
-
* If this method is called, something is seriously wrong
|
420
|
-
* (e.g. a JFlex bug producing a faulty scanner etc.).
|
421
|
-
*
|
422
|
-
* Usual syntax/scanner level error handling should be done
|
423
|
-
* in error fallback rules.
|
424
|
-
*
|
425
|
-
* @param errorCode the code of the errormessage to display
|
426
|
-
*/
|
427
|
-
private void zzScanError(int errorCode) {
|
428
|
-
String message;
|
429
|
-
try {
|
430
|
-
message = ZZ_ERROR_MSG[errorCode];
|
431
|
-
}
|
432
|
-
catch (ArrayIndexOutOfBoundsException e) {
|
433
|
-
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
|
434
|
-
}
|
435
|
-
|
436
|
-
throw new Error(message);
|
437
|
-
}
|
438
|
-
|
439
|
-
|
440
|
-
/**
|
441
|
-
* Pushes the specified amount of characters back into the input stream.
|
442
|
-
*
|
443
|
-
* They will be read again by then next call of the scanning method
|
444
|
-
*
|
445
|
-
* @param number the number of characters to be read again.
|
446
|
-
* This number must not be greater than yylength()!
|
447
|
-
*/
|
448
|
-
public void yypushback(int number) {
|
449
|
-
if ( number > yylength() )
|
450
|
-
zzScanError(ZZ_PUSHBACK_2BIG);
|
451
|
-
|
452
|
-
zzMarkedPos -= number;
|
453
|
-
}
|
454
|
-
|
455
|
-
|
456
|
-
/**
|
457
|
-
* Resumes scanning until the next regular expression is matched,
|
458
|
-
* the end of input is encountered or an I/O-Error occurs.
|
459
|
-
*
|
460
|
-
* @return the next token
|
461
|
-
* @exception java.io.IOException if any I/O-Error occurs
|
462
|
-
*/
|
463
|
-
public org.embulk.spi.time.StrptimeToken yylex() throws java.io.IOException {
|
464
|
-
int zzInput;
|
465
|
-
int zzAction;
|
466
|
-
|
467
|
-
// cached fields:
|
468
|
-
int zzCurrentPosL;
|
469
|
-
int zzMarkedPosL;
|
470
|
-
int zzEndReadL = zzEndRead;
|
471
|
-
char [] zzBufferL = zzBuffer;
|
472
|
-
char [] zzCMapL = ZZ_CMAP;
|
473
|
-
|
474
|
-
int [] zzTransL = ZZ_TRANS;
|
475
|
-
int [] zzRowMapL = ZZ_ROWMAP;
|
476
|
-
int [] zzAttrL = ZZ_ATTRIBUTE;
|
477
|
-
int zzPushbackPosL = zzPushbackPos = -1;
|
478
|
-
boolean zzWasPushback;
|
479
|
-
|
480
|
-
while (true) {
|
481
|
-
zzMarkedPosL = zzMarkedPos;
|
482
|
-
|
483
|
-
zzAction = -1;
|
484
|
-
|
485
|
-
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
|
486
|
-
|
487
|
-
zzState = zzLexicalState;
|
488
|
-
|
489
|
-
zzWasPushback = false;
|
490
|
-
|
491
|
-
zzForAction: {
|
492
|
-
while (true) {
|
493
|
-
|
494
|
-
if (zzCurrentPosL < zzEndReadL)
|
495
|
-
zzInput = zzBufferL[zzCurrentPosL++];
|
496
|
-
else if (zzAtEOF) {
|
497
|
-
zzInput = YYEOF;
|
498
|
-
break zzForAction;
|
499
|
-
}
|
500
|
-
else {
|
501
|
-
// store back cached positions
|
502
|
-
zzCurrentPos = zzCurrentPosL;
|
503
|
-
zzMarkedPos = zzMarkedPosL;
|
504
|
-
zzPushbackPos = zzPushbackPosL;
|
505
|
-
boolean eof = zzRefill();
|
506
|
-
// get translated positions and possibly new buffer
|
507
|
-
zzCurrentPosL = zzCurrentPos;
|
508
|
-
zzMarkedPosL = zzMarkedPos;
|
509
|
-
zzBufferL = zzBuffer;
|
510
|
-
zzEndReadL = zzEndRead;
|
511
|
-
zzPushbackPosL = zzPushbackPos;
|
512
|
-
if (eof) {
|
513
|
-
zzInput = YYEOF;
|
514
|
-
break zzForAction;
|
515
|
-
}
|
516
|
-
else {
|
517
|
-
zzInput = zzBufferL[zzCurrentPosL++];
|
518
|
-
}
|
519
|
-
}
|
520
|
-
int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
|
521
|
-
if (zzNext == -1) break zzForAction;
|
522
|
-
zzState = zzNext;
|
523
|
-
|
524
|
-
int zzAttributes = zzAttrL[zzState];
|
525
|
-
if ( (zzAttributes & 2) == 2 )
|
526
|
-
zzPushbackPosL = zzCurrentPosL;
|
527
|
-
|
528
|
-
if ( (zzAttributes & 1) == 1 ) {
|
529
|
-
zzWasPushback = (zzAttributes & 4) == 4;
|
530
|
-
zzAction = zzState;
|
531
|
-
zzMarkedPosL = zzCurrentPosL;
|
532
|
-
if ( (zzAttributes & 8) == 8 ) break zzForAction;
|
533
|
-
}
|
534
|
-
|
535
|
-
}
|
536
|
-
}
|
537
|
-
|
538
|
-
// store back cached position
|
539
|
-
zzMarkedPos = zzMarkedPosL;
|
540
|
-
if (zzWasPushback)
|
541
|
-
zzMarkedPos = zzPushbackPosL;
|
542
|
-
|
543
|
-
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
|
544
|
-
case 2:
|
545
|
-
{ yybegin(YYINITIAL); return directive(yycharat(yylength()-1));
|
546
|
-
}
|
547
|
-
case 6: break;
|
548
|
-
case 3:
|
549
|
-
{ stringBuf.append(yycharat(0));
|
550
|
-
}
|
551
|
-
case 7: break;
|
552
|
-
case 5:
|
553
|
-
{ return StrptimeToken.str("%");
|
554
|
-
}
|
555
|
-
case 8: break;
|
556
|
-
case 1:
|
557
|
-
{ stringBuf.append(yycharat(0)); return rawString();
|
558
|
-
}
|
559
|
-
case 9: break;
|
560
|
-
case 4:
|
561
|
-
{ yybegin(CONVERSION);
|
562
|
-
}
|
563
|
-
case 10: break;
|
564
|
-
default:
|
565
|
-
if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
|
566
|
-
zzAtEOF = true;
|
567
|
-
return null;
|
568
|
-
}
|
569
|
-
else {
|
570
|
-
zzScanError(ZZ_NO_MATCH);
|
571
|
-
}
|
572
|
-
}
|
573
|
-
}
|
574
|
-
}
|
575
|
-
|
576
|
-
|
577
|
-
}
|