embulk-input-jdbc 0.2.1 → 0.2.2

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: ef30f93f35dcbdd6db4b36511bf5f75b883a1ec6
4
- data.tar.gz: e0b9ea62c7511c819633d6ae91f54fa61403bcd4
3
+ metadata.gz: 6ecf975e9eb38f662ee1477d61efdd81bac82273
4
+ data.tar.gz: fa6aa18d2ba4b4087e8453dd7d94e6108f31ee16
5
5
  SHA512:
6
- metadata.gz: 8ebe087f0a16081df0bc640b2916661357e41190bcaaa7c4b0bf6bec80dba033bbc740a670893f8b8f49699effb0ab93caf8bd290eda838c9c91f85a65941f95
7
- data.tar.gz: e560eb0880aca36c5bde61c17e1f80ff64fcd4c2a4c619402e2d3a1983c1d533de786a9f75fe98e35e0e63dcb34332d7bd8916721a26caa485ca2eb1d128ca16
6
+ metadata.gz: 75b6233fda0b506883a29bbf9cde365b095fb2c9b5a4fc61cd2b5ada0fdbd77e5053cff5d0bffb79bba2d8408641188ad91ab959236c24acd0535300590f835b
7
+ data.tar.gz: d55cc9f83d0ffb34d81cd46a8f310b2c512ce0d2808961f91e925c8d70a30e5fea8d59f32dd241be45a6fd3208216ef00e3b424fb33c152ed69ca78a75ec362c
@@ -30,7 +30,7 @@ import org.embulk.input.jdbc.JdbcInputConnection.BatchSelect;
30
30
  public abstract class AbstractJdbcInputPlugin
31
31
  implements InputPlugin
32
32
  {
33
- private final Logger logger = Exec.getLogger(getClass());
33
+ protected final Logger logger = Exec.getLogger(getClass());
34
34
 
35
35
  public interface PluginTask extends Task
36
36
  {
@@ -170,7 +170,7 @@ public abstract class AbstractJdbcInputPlugin
170
170
 
171
171
  @Override
172
172
  public ConfigDiff resume(TaskSource taskSource,
173
- Schema schema, int processorCount,
173
+ Schema schema, int taskCount,
174
174
  InputPlugin.Control control)
175
175
  {
176
176
  PluginTask task = taskSource.loadTask(getTaskClass());
@@ -179,7 +179,7 @@ public abstract class AbstractJdbcInputPlugin
179
179
  // is necessary to resume. transaction() gets the range of order_by
180
180
  // colum and set it to WHERE condition to make the operation deterministic
181
181
 
182
- return buildNextConfigDiff(task, control.run(taskSource, schema, processorCount));
182
+ return buildNextConfigDiff(task, control.run(taskSource, schema, taskCount));
183
183
  }
184
184
 
185
185
  protected ConfigDiff buildNextConfigDiff(PluginTask task, List<CommitReport> reports)
@@ -196,7 +196,7 @@ public abstract class AbstractJdbcInputPlugin
196
196
 
197
197
  @Override
198
198
  public void cleanup(TaskSource taskSource,
199
- Schema schema, int processorCount,
199
+ Schema schema, int taskCount,
200
200
  List<CommitReport> successCommitReports)
201
201
  {
202
202
  // do nothing
@@ -204,7 +204,7 @@ public abstract class AbstractJdbcInputPlugin
204
204
 
205
205
  @Override
206
206
  public CommitReport run(TaskSource taskSource,
207
- Schema schema, int processorIndex,
207
+ Schema schema, int taskIndex,
208
208
  PageOutput output)
209
209
  {
210
210
  PluginTask task = taskSource.loadTask(getTaskClass());
@@ -15,7 +15,8 @@ import org.embulk.spi.Exec;
15
15
  public class JdbcInputConnection
16
16
  implements AutoCloseable
17
17
  {
18
- private final Logger logger = Exec.getLogger(JdbcInputConnection.class);
18
+ protected final Logger logger = Exec.getLogger(getClass());
19
+
19
20
  protected final Connection connection;
20
21
  protected final String schemaName;
21
22
  protected final DatabaseMetaData databaseMetaData;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FURUHASHI Sadayuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-18 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: JDBC input plugin is an Embulk plugin that loads records from JDBC so that any output plugins can receive the records. Search the output plugins by "embulk-output" keyword.
14
14
  email:
@@ -26,7 +26,7 @@ files:
26
26
  - src/main/java/org/embulk/input/jdbc/getter/ColumnGetter.java
27
27
  - src/main/java/org/embulk/input/jdbc/getter/ColumnGetterFactory.java
28
28
  - src/main/java/org/embulk/input/jdbc/getter/ColumnGetters.java
29
- - classpath/embulk-input-jdbc-0.2.1.jar
29
+ - classpath/embulk-input-jdbc-0.2.2.jar
30
30
  homepage: https://github.com/embulk/embulk-input-jdbc
31
31
  licenses:
32
32
  - Apache 2.0