This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,000 times Date._strptime('2001-02-03', '%Y-%m-%d') | |
user system total real | |
mri 2.4.1 0.000000 0.000000 0.070000 ( 0.086790) | |
jruby 9.1.9.0 0.000000 0.000000 8.020000 ( 3.789310) | |
jruby (master) 0.000000 0.000000 7.290000 ( 4.043696) | |
10,000 times Date._strptime('2001-02-03', '%Y-%m-%d') | |
user system total real | |
mri 2.4.1 0.000000 0.000000 0.090000 ( 0.142577) | |
jruby 9.1.9.0 0.000000 0.000000 12.450000 ( 7.671689) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,000 times Date._strptime('2001-02-03', '%Y-%m-%d') | |
user system total real | |
mri 2.4.1 0.000000 0.000000 0.070000 ( 0.092492) | |
jruby 9.1.9.0 0.000000 0.000000 8.220000 ( 3.861129) | |
jruby (master) 0.000000 0.000000 7.130000 ( 3.671143) | |
10,000 times Date._strptime('2001-02-03', '%Y-%m-%d') | |
user system total real | |
mri 2.4.1 0.000000 0.000000 0.100000 ( 0.126605) | |
jruby 9.1.9.0 0.000000 0.000000 11.570000 ( 5.183052) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,000 times Date._strptime('2001-02-03', '%Y-%m-%d') | |
user system total real | |
mri 2.4.1 0.000000 0.000000 0.110000 ( 0.261414) | |
jruby 9.1.9.0 0.000000 0.000000 8.840000 ( 4.920246) | |
jruby (master) 0.000000 0.000000 7.410000 ( 3.804355) | |
10,000 times Date._strptime('2001-02-03', '%Y-%m-%d') | |
user system total real | |
mri 2.4.1 0.000000 0.000000 0.080000 ( 0.082622) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ .embulk/bin/embulk gem install embulk-output-redis --debug | |
2016-07-23 01:33:50.232 -0700: Embulk v0.8.10 | |
NOTE: Debugging mode prints all exceptions even when rescued | |
Exception `LoadError' at org/jruby/RubyKernel.java:944 - no such file to load -- cgi/escape | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org | |
Exception `Resolv::ResolvTimeout' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:698 - Resolv::ResolvTimeout | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org.hsd1.ca.comcast.net | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org.hsd1.ca.comcast.net | |
Exception ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ .embulk/bin/embulk gem install embulk-output-bigquery --debug | |
2016-07-23 01:31:59.082 -0700: Embulk v0.8.10 | |
NOTE: Debugging mode prints all exceptions even when rescued | |
Exception `LoadError' at org/jruby/RubyKernel.java:944 - no such file to load -- cgi/escape | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org.hsd1.ca.comcast.net | |
Exception `Resolv::DNS::Config::NXDomain' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:553 - _rubygems._tcp.api.rubygems.org.hsd1.ca.comcast.net | |
Exception `Resolv::ResolvError' at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/resolv.rb:498 - DNS result has no information fo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gradle compileJava | |
:compileJava | |
/Users/muga/works/workspace/embulk-plugin-s3/src/main/java/org/embulk/plugin/s3/S3FileInputPlugin.java:21: error: cannot find symbol | |
import org.embulk.config.ConfigDiff; | |
^ | |
symbol: class ConfigDiff | |
location: package org.embulk.config | |
/Users/muga/works/workspace/embulk-plugin-s3/src/main/java/org/embulk/plugin/s3/S3FileInputPlugin.java:54: error: cannot find symbol | |
import org.embulk.config.ConfigDiff; | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.msgpack.MessagePack; | |
import org.msgpack.packer.Packer; | |
import org.msgpack.type.MapValue; | |
import org.msgpack.type.Value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.apache.hadoop.hive.ql.Driver#compile(..) | |
... | |
ParseDriver pd = new ParseDriver(); | |
// parser: parse sql commands with Hive lexer and parser. it converts into AST representation. | |
ASTNode tree = pd.parse(command, ctx); | |
... | |
// semantic analyzer: it analyzes ASTree semantically. that means it converts into block-base | |
// internal query representation. | |
BaseSemanticAnalyzer sem = SemanticAnalyzerFactory.get(conf, tree); | |
sem.analyze(tree, ctx); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import org.msgpack.MessagePack; | |
import org.msgpack.type.IntegerValue; | |
import org.msgpack.type.MapValue; | |
import org.msgpack.type.RawValue; | |
import org.msgpack.type.ValueFactory; | |
public class Sample { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.spy; | |
import static org.mockito.Mockito.when; | |
import org.junit.Test; | |
public class Sample { | |
static class Reader { | |
private String fileName; |
NewerOlder