embulk-output-documentdb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdf1c91d03258737edcf353cdfaa4ad87ddba0b2
4
- data.tar.gz: 4a96c42c177b9693c66bfa412f720880073b16d7
3
+ metadata.gz: 5d26d5ff41d1b5912394cb542380cc7f284ed7a6
4
+ data.tar.gz: 016d250112a3794f23595767884cec47e011d81e
5
5
  SHA512:
6
- metadata.gz: d632dcfc63aa637e55838ac223327f9b5fc884ba0684edcb408dfab5ab3882ef237950941c158c7c25544c7969ed3b611ebd537aa00c8a62b3431905ddf9e6ec
7
- data.tar.gz: a1ded833cbd20cb47dcc417fdea5c3c37aedfbfe169d2008a631bc9c800953d2d8b1b136cac661416d352cc51c57b2d8e7849e3e9ff0ff88eb5d75b52720ec9f
6
+ metadata.gz: fd50152daa2c0ace5813853bd2980640918a3065469ceccf5d92dfa68bd617d271cc8008995c30501f54053f9bb4f9bfdd2467f9e024043ea327c46054751efc
7
+ data.tar.gz: 1151c27a3cc4c08fa8ee6d60558314fe09d8e771b4971dced9f6f6f9801a0a75deef9e15158cf373ee205a6209fad2f3f2febf367b2234f87c32c929d7b86bf0
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.1.1 - 2016/08/29
2
+
3
+ * Add elapsed time info to task_report
4
+
1
5
  Release 0.1.0 - 2016/08/28
2
6
 
3
7
  * Inital Release
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Azure DocumentDB output plugin for Embulk
2
2
 
3
- embulk-output-documentdb is a embulk output plugin that dumps records to Azure DocumentDB
3
+ embulk-output-documentdb is an embulk output plugin that dumps records to Azure DocumentDB. Embulk is a open-source bulk data loader that helps data transfer between various databases, storages, file formats, and cloud services. See [Embulk documentation](http://www.embulk.org/docs/) for details.
4
4
 
5
5
  ## Overview
6
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.summary = "Azure DocumentDB output plugin for Embulk"
9
9
  spec.description = "Dumps records to Azure DocumentDB"
10
10
  spec.licenses = ["MIT"]
11
- spec.homepage = "https://github.com/yoichika/embulk-output-documentdb"
11
+ spec.homepage = "https://github.com/yokawasa/embulk-output-documentdb"
12
12
 
13
13
  spec.files = `git ls-files`.split("\n")
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec)/})
@@ -45,7 +45,6 @@ module Embulk
45
45
  # resume(task, schema, count, &control)
46
46
 
47
47
  # non-resumable output:
48
- Embulk.logger.info "Documentdb output start"
49
48
  task_reports = yield(task)
50
49
  Embulk.logger.info "Documentdb output finished. Task reports = #{task_reports.to_json}"
51
50
 
@@ -63,6 +62,8 @@ module Embulk
63
62
 
64
63
  # init is called in initialize(task, schema, index)
65
64
  def init
65
+ Embulk.logger.info "Documentdb output init"
66
+ @start_time = Time.now
66
67
  # initialization code:
67
68
  @recordnum = 0
68
69
  @successnum = 0
@@ -147,16 +148,21 @@ module Embulk
147
148
  end
148
149
 
149
150
  def finish
151
+ Embulk.logger.info "Documentdb output finish"
152
+ @finish_time = Time.now
150
153
  end
151
154
 
152
155
  def abort
153
156
  end
154
157
 
155
158
  def commit
159
+ Embulk.logger.info "Documentdb output commit"
160
+ elapsed_time = @finish_time - @start_time
156
161
  task_report = {
157
162
  "total_records" => @recordnum,
158
163
  "success" => @successnum,
159
164
  "skip_or_error" => (@recordnum - @successnum),
165
+ "elapsed_time" => elapsed_time,
160
166
  }
161
167
  return task_report
162
168
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-documentdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichi Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-28 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -90,7 +90,7 @@ files:
90
90
  - samples/config-csv2docdb_partitionedcoll.yml
91
91
  - samples/config-csv2docdb_singlecoll.yml
92
92
  - samples/sample_01.csv
93
- homepage: https://github.com/yoichika/embulk-output-documentdb
93
+ homepage: https://github.com/yokawasa/embulk-output-documentdb
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}