embulk-input-azure_blob_storage 0.1.6 → 0.1.7

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: c8a820c0389e246171f6f0ccd9ff535ae4be3b56
4
- data.tar.gz: 9a31f3ba0a98659a4745923cadb485b87507ad60
3
+ metadata.gz: 5f42f0f0c779cd135beaa548cb3d3f4a50dc1bbc
4
+ data.tar.gz: f6c5aac931cf45ec5ba5e0d662c2c8e0b3b2918a
5
5
  SHA512:
6
- metadata.gz: d636e2392ad6c94b8d218e03ac84e9b1e95e29229bd30af937b9e0cd85a247f37588bea12c4ca336ea6d992ac89812a2a0d0834e087f3b3a342e92d897f3032e
7
- data.tar.gz: aa4c141450109ad1dca6d04c1c9f7dfade3f471dbd5f821b5b87220971ea12387fa6278c4265622e70640d0ed2fbe699653b98146a1ca3093ce1fc7d92e9a04d
6
+ metadata.gz: 66e6b34d630431264a158b83115da874ffebb12b02e8e020e27bc915e31fbf3b283cb9aa5812fad51c933568ce96f5a8b6234e0a711b50d10f4f3c4ee014e411
7
+ data.tar.gz: 67286da3771c3c7a264ed9b9f28233fc46e3fed181a2b9e3bfe260621fec13d0c9197a64121c17befbbb401bcba6e1b80ce5c12d313c7ae37533318033bcbd5f
data/.travis.yml ADDED
@@ -0,0 +1,18 @@
1
+ language: java
2
+
3
+ jdk:
4
+ - oraclejdk8
5
+ - oraclejdk7
6
+ - openjdk7
7
+
8
+ env:
9
+ global:
10
+ - AZURE_ACCOUNT_NAME=sakamatest
11
+ - AZURE_CONTAINER=blobcontainers
12
+ - AZURE_CONTAINER_IMPORT_DIRECTORY=unittests_import
13
+ - secure: "kcQtK4pbq9ldVFOQXRiPd+ieVokGfPWfc45bZu9iAags68sFhUHxs0WrT4Io2RZvYSIQ7t5OHYwF8TUqgecaMPmoQmNkUHozgVoJ1oBu9BwA2ceh+u7/pkWPJ0VsAPW2+LE2uMC67MrvayeIxV3wuCCDdBHd2F64Ja8AE7p8Re8vrrDvD8BVF6+OqHma0S8i7PCZE+4rYeJpITbAAQ8PqMa8P/6Wkbp0LSJCAiDhwc/89wGn8wlZkju/aUGz0tG89Yq3Iw+xonhsPhLi910rg31vIMEH/K14I/uiUOaxavvxzc37fHAJgMzhQnRN67qhVuX5eocMosDAVAsXByURYAGZ4/f4sLqsghGkh4f+b96AchiGvM62hbwPyn1BMBl6fOezap5LOMAKjSZBReHNN2Hau+7YXDhqv2aVxVLWwXHDJQ8KhgMn10EZ+W3U5KuNLaGrfcrPfWIDxcR3rU81SXkzAyoHri895xlXq+CxsWOlYsXpWwpX14hNIJzcqtq9KQt+U34Xyw/whBsrSZbCitTZvPiTC9pFvCXBddpz07KqaUeUYwneGbVdCjpq42OO5bybSOAHEI8U7Ay7ldEFs0mRq8HzEOrhwZIdAgODsujQwV1jFgz6yKNwKTE6jx8UOqUQKalQjiAt0he4Pz8BjH+uxmRRvALNjF0ZWOMl5UU="
14
+
15
+ script:
16
+ - ./gradlew gem
17
+ - ./gradlew --info check jacocoTestReport
18
+
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+
2
+ ## 0.1.7 - 2016-08-19
3
+ * [new feature] Support `incremental` option [#13](https://github.com/sakama/embulk-input-azure_blob_storage/pull/13)
4
+
1
5
  ## 0.1.6 - 2016-04-01
2
6
 
3
7
  * [maintenance] Small refactoring [#9](https://github.com/sakama/embulk-input-azure_blob_storage/pull/9)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Azure Blob Storage file input plugin for Embulk
2
+ [![Build Status](https://travis-ci.org/embulk/embulk-input-azure_blob_storage.svg?branch=master)](https://travis-ci.org/embulk/embulk-input-azure_blob_storage)
2
3
 
3
4
  [Embulk](http://www.embulk.org/) file input plugin read files stored on [Microsoft Azure](https://azure.microsoft.com/) [Blob Storage](https://azure.microsoft.com/en-us/documentation/articles/storage-introduction/#blob-storage)
4
5
 
@@ -16,6 +17,7 @@ First, create Azure [Storage Account](https://azure.microsoft.com/en-us/document
16
17
  - **account_key**: primary access key (string, required)
17
18
  - **container**: container name data stored (string, required)
18
19
  - **path_prefix**: prefix of target keys (string, required) (string, required)
20
+ - **incremental**: enables incremental loading(boolean, optional. default: true). If incremental loading is enabled, config diff for the next execution will include `last_path` parameter so that next execution skips files before the path. Otherwise, `last_path` will not be included.
19
21
  - **path_match_pattern**: regexp to match file paths. If a file path doesn't match with this pattern, the file will be skipped (regexp string, optional)
20
22
  - **total_file_count_limit**: maximum number of files to read (integer, optional)
21
23
 
data/build.gradle CHANGED
@@ -17,7 +17,7 @@ configurations {
17
17
  sourceCompatibility = 1.7
18
18
  targetCompatibility = 1.7
19
19
 
20
- version = "0.1.6"
20
+ version = "0.1.7"
21
21
 
22
22
  dependencies {
23
23
  compile "org.embulk:embulk-core:0.8.2"
@@ -69,7 +69,7 @@ Gem::Specification.new do |spec|
69
69
  spec.description = %[Reads files stored on Microsoft Azure Blob Storage.]
70
70
  spec.email = ["satoshiakama@gmail.com"]
71
71
  spec.licenses = ["Apache-2.0"]
72
- spec.homepage = "https://github.com/sakama/embulk-input-azure_blob_storage"
72
+ spec.homepage = "https://github.com/embulk/embulk-input-azure_blob_storage"
73
73
 
74
74
  spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
75
75
  spec.test_files = spec.files.grep(%r"^(test|spec)/")
@@ -57,6 +57,10 @@ public class AzureBlobStorageFileInputPlugin
57
57
  @Config("path_prefix")
58
58
  String getPathPrefix();
59
59
 
60
+ @Config("incremental")
61
+ @ConfigDefault("true")
62
+ boolean getIncremental();
63
+
60
64
  @Config("last_path")
61
65
  @ConfigDefault("null")
62
66
  Optional<String> getLastPath();
@@ -95,7 +99,9 @@ public class AzureBlobStorageFileInputPlugin
95
99
  control.run(taskSource, taskCount);
96
100
 
97
101
  ConfigDiff configDiff = Exec.newConfigDiff();
98
- configDiff.set("last_path", task.getFiles().getLastPath(task.getLastPath()));
102
+ if (task.getIncremental()) {
103
+ configDiff.set("last_path", task.getFiles().getLastPath(task.getLastPath()));
104
+ }
99
105
 
100
106
  return configDiff;
101
107
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-azure_blob_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Akama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-01 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
+ - .travis.yml
49
50
  - CHANGELOG.md
50
51
  - README.md
51
52
  - build.gradle
@@ -64,9 +65,9 @@ files:
64
65
  - src/test/resources/sample_02.csv
65
66
  - classpath/azure-storage-4.0.0.jar
66
67
  - classpath/commons-lang3-3.4.jar
67
- - classpath/embulk-input-azure_blob_storage-0.1.6.jar
68
+ - classpath/embulk-input-azure_blob_storage-0.1.7.jar
68
69
  - classpath/jackson-core-2.6.0.jar
69
- homepage: https://github.com/sakama/embulk-input-azure_blob_storage
70
+ homepage: https://github.com/embulk/embulk-input-azure_blob_storage
70
71
  licenses:
71
72
  - Apache-2.0
72
73
  metadata: {}