embulk-output-bigobject 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/embulk-output-bigobject.gemspec +1 -1
- data/lib/embulk/output/bigobject.rb +7 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78b8d6dbc201c54d149ccddc35c5aadd4a2903bb
|
|
4
|
+
data.tar.gz: a9b8c9e531e0cc987cdf6cb88cef89f69f3adaac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30c0e5ac1d47da48c4ebb29d5cdd6300b2be7c550c3f6ab6bd8373a965f74d9cbda4711faeb91517aa33542962771925402b8e4261ab612c0c9d62a273d04170
|
|
7
|
+
data.tar.gz: 42882ce4db3b518a53932ce40406d32ee52d125c25031eff657da0c922c115cbb39db79c0a54b6bc65c228cb0b741927f9cfdefbd0039d88d4262dc3e20759f4
|
data/Gemfile
CHANGED
|
File without changes
|
data/LICENSE.txt
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
Gem::Specification.new do |spec|
|
|
3
3
|
spec.name = "embulk-output-bigobject"
|
|
4
|
-
spec.version = "0.3.
|
|
4
|
+
spec.version = "0.3.3"
|
|
5
5
|
spec.authors = ["Cheng-Ching Huang"]
|
|
6
6
|
spec.summary = "Bigobject output plugin for Embulk"
|
|
7
7
|
spec.description = "Dumps records to Bigobject."
|
|
@@ -66,7 +66,7 @@ module Embulk
|
|
|
66
66
|
@@io ||= create_shared_io
|
|
67
67
|
@@mutext ||= Mutex.new
|
|
68
68
|
@@mutext.synchronize do
|
|
69
|
-
@@io.
|
|
69
|
+
@@io.write buff
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -98,22 +98,18 @@ module Embulk
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
def add(page)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
#data = Array.new
|
|
104
|
-
values = Array.new
|
|
105
|
-
count = 0
|
|
101
|
+
data = Array.new
|
|
106
102
|
|
|
107
103
|
page.each do |records|
|
|
108
104
|
values = []
|
|
109
105
|
records.each do |row| values << "\"#{row.to_s.gsub(/\"/,"\"\"")}\"" end
|
|
110
|
-
|
|
111
|
-
safe_io_puts "#{values.join(",")}"
|
|
112
|
-
count += 1
|
|
106
|
+
data.push "#{values.join(",")}"
|
|
113
107
|
end
|
|
114
108
|
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
safe_io_puts "#{data.join("\n")}"
|
|
110
|
+
|
|
111
|
+
@counter += data.length
|
|
112
|
+
@task['ttl_counter'] += data.length
|
|
117
113
|
|
|
118
114
|
end
|
|
119
115
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: embulk-output-bigobject
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cheng-Ching Huang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|