embulk 0.6.22 → 0.6.23
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/build.gradle +1 -1
- data/embulk-core/src/main/java/org/embulk/command/LiquidTemplate.java +1 -1
- data/embulk-core/src/main/java/org/embulk/config/CommitReport.java +8 -8
- data/embulk-core/src/main/java/org/embulk/config/ConfigDiff.java +8 -8
- data/embulk-core/src/main/java/org/embulk/config/ConfigSource.java +9 -9
- data/embulk-core/src/main/java/org/embulk/config/DataSource.java +15 -15
- data/embulk-core/src/main/java/org/embulk/config/Task.java +2 -2
- data/embulk-core/src/main/java/org/embulk/config/TaskSource.java +9 -9
- data/embulk-core/src/main/java/org/embulk/guice/LifeCycleManager.java +3 -3
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoaderFactory.java +1 -1
- data/embulk-core/src/main/java/org/embulk/plugin/PluginSource.java +1 -1
- data/embulk-core/src/main/java/org/embulk/spi/BufferAllocator.java +2 -2
- data/embulk-core/src/main/java/org/embulk/spi/ColumnVisitor.java +5 -5
- data/embulk-core/src/main/java/org/embulk/spi/DecoderPlugin.java +4 -4
- data/embulk-core/src/main/java/org/embulk/spi/EncoderPlugin.java +4 -4
- data/embulk-core/src/main/java/org/embulk/spi/ExecAction.java +1 -1
- data/embulk-core/src/main/java/org/embulk/spi/ExecutorPlugin.java +5 -5
- data/embulk-core/src/main/java/org/embulk/spi/Extension.java +1 -1
- data/embulk-core/src/main/java/org/embulk/spi/FileInput.java +3 -3
- data/embulk-core/src/main/java/org/embulk/spi/FileInputPlugin.java +6 -6
- data/embulk-core/src/main/java/org/embulk/spi/FileOutput.java +4 -4
- data/embulk-core/src/main/java/org/embulk/spi/FileOutputPlugin.java +6 -6
- data/embulk-core/src/main/java/org/embulk/spi/FilterPlugin.java +4 -4
- data/embulk-core/src/main/java/org/embulk/spi/FormatterPlugin.java +4 -4
- data/embulk-core/src/main/java/org/embulk/spi/GuessPlugin.java +1 -1
- data/embulk-core/src/main/java/org/embulk/spi/InputPlugin.java +7 -7
- data/embulk-core/src/main/java/org/embulk/spi/OutputPlugin.java +6 -6
- data/embulk-core/src/main/java/org/embulk/spi/PageOutput.java +3 -3
- data/embulk-core/src/main/java/org/embulk/spi/ParserPlugin.java +4 -4
- data/embulk-core/src/main/java/org/embulk/spi/ProcessState.java +3 -3
- data/embulk-core/src/main/java/org/embulk/spi/Transactional.java +2 -2
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileInput.java +5 -5
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileOutput.java +6 -6
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalPageOutput.java +5 -5
- data/embulk-core/src/main/java/org/embulk/spi/time/JRubyTimeParserHelper.java +2 -2
- data/embulk-core/src/main/java/org/embulk/spi/time/JRubyTimeParserHelperFactory.java +1 -1
- data/embulk-core/src/main/java/org/embulk/spi/type/Type.java +3 -3
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnSetter.java +6 -6
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/DefaultValueSetter.java +5 -5
- data/embulk-docs/src/release.rst +1 -0
- data/embulk-docs/src/release/release-0.6.23.rst +17 -0
- data/lib/embulk/error.rb +1 -7
- data/lib/embulk/java/liquid_helper.rb +1 -2
- data/lib/embulk/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64abec3fb6b1bab0ae694de9ffd3addda18c3261
|
4
|
+
data.tar.gz: 7cc07c9baf206c4f85cb776710b18bc89ebde41b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71fbfbc27bb0f5f6e9064fb1001b83e9125617b6b373641ab2528489f3d68c3a274830465a73663a01da40105cb5d6daa50cbc9aca48680f37fa0428255bb45b
|
7
|
+
data.tar.gz: cde8bcbad074d0f8a096cc2e869473bec03b4febf09992a64ed40fa264e07488aa3438d0e4c8aaa3991174d3b90bfa95f108498b65b94713a9c00634eab5d757
|
data/build.gradle
CHANGED
@@ -4,26 +4,26 @@ public interface CommitReport
|
|
4
4
|
extends DataSource
|
5
5
|
{
|
6
6
|
@Override
|
7
|
-
|
7
|
+
CommitReport getNested(String attrName);
|
8
8
|
|
9
9
|
@Override
|
10
|
-
|
10
|
+
CommitReport getNestedOrSetEmpty(String attrName);
|
11
11
|
|
12
12
|
@Override
|
13
|
-
|
13
|
+
CommitReport set(String attrName, Object v);
|
14
14
|
|
15
15
|
@Override
|
16
|
-
|
16
|
+
CommitReport setNested(String attrName, DataSource v);
|
17
17
|
|
18
18
|
@Override
|
19
|
-
|
19
|
+
CommitReport setAll(DataSource other);
|
20
20
|
|
21
21
|
@Override
|
22
|
-
|
22
|
+
CommitReport remove(String attrName);
|
23
23
|
|
24
24
|
@Override
|
25
|
-
|
25
|
+
CommitReport deepCopy();
|
26
26
|
|
27
27
|
@Override
|
28
|
-
|
28
|
+
CommitReport merge(DataSource other);
|
29
29
|
}
|
@@ -4,26 +4,26 @@ public interface ConfigDiff
|
|
4
4
|
extends DataSource
|
5
5
|
{
|
6
6
|
@Override
|
7
|
-
|
7
|
+
ConfigDiff getNested(String attrName);
|
8
8
|
|
9
9
|
@Override
|
10
|
-
|
10
|
+
ConfigDiff getNestedOrSetEmpty(String attrName);
|
11
11
|
|
12
12
|
@Override
|
13
|
-
|
13
|
+
ConfigDiff set(String attrName, Object v);
|
14
14
|
|
15
15
|
@Override
|
16
|
-
|
16
|
+
ConfigDiff setNested(String attrName, DataSource v);
|
17
17
|
|
18
18
|
@Override
|
19
|
-
|
19
|
+
ConfigDiff setAll(DataSource other);
|
20
20
|
|
21
21
|
@Override
|
22
|
-
|
22
|
+
ConfigDiff remove(String attrName);
|
23
23
|
|
24
24
|
@Override
|
25
|
-
|
25
|
+
ConfigDiff deepCopy();
|
26
26
|
|
27
27
|
@Override
|
28
|
-
|
28
|
+
ConfigDiff merge(DataSource other);
|
29
29
|
}
|
@@ -3,29 +3,29 @@ package org.embulk.config;
|
|
3
3
|
public interface ConfigSource
|
4
4
|
extends DataSource
|
5
5
|
{
|
6
|
-
|
6
|
+
<T> T loadConfig(Class<T> taskType);
|
7
7
|
|
8
8
|
@Override
|
9
|
-
|
9
|
+
ConfigSource getNested(String attrName);
|
10
10
|
|
11
11
|
@Override
|
12
|
-
|
12
|
+
ConfigSource getNestedOrSetEmpty(String attrName);
|
13
13
|
|
14
14
|
@Override
|
15
|
-
|
15
|
+
ConfigSource set(String attrName, Object v);
|
16
16
|
|
17
17
|
@Override
|
18
|
-
|
18
|
+
ConfigSource setNested(String attrName, DataSource v);
|
19
19
|
|
20
20
|
@Override
|
21
|
-
|
21
|
+
ConfigSource setAll(DataSource other);
|
22
22
|
|
23
23
|
@Override
|
24
|
-
|
24
|
+
ConfigSource remove(String attrName);
|
25
25
|
|
26
26
|
@Override
|
27
|
-
|
27
|
+
ConfigSource deepCopy();
|
28
28
|
|
29
29
|
@Override
|
30
|
-
|
30
|
+
ConfigSource merge(DataSource other);
|
31
31
|
}
|
@@ -7,33 +7,33 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
7
7
|
|
8
8
|
public interface DataSource
|
9
9
|
{
|
10
|
-
|
10
|
+
List<String> getAttributeNames();
|
11
11
|
|
12
|
-
|
12
|
+
Iterable<Map.Entry<String, JsonNode>> getAttributes();
|
13
13
|
|
14
|
-
|
14
|
+
boolean isEmpty();
|
15
15
|
|
16
|
-
|
16
|
+
boolean has(String attrName);
|
17
17
|
|
18
|
-
|
18
|
+
<E> E get(Class<E> type, String attrName);
|
19
19
|
|
20
|
-
|
20
|
+
<E> E get(Class<E> type, String attrName, E defaultValue);
|
21
21
|
|
22
|
-
|
22
|
+
DataSource getNested(String attrName);
|
23
23
|
|
24
|
-
|
24
|
+
DataSource getNestedOrSetEmpty(String attrName);
|
25
25
|
|
26
|
-
|
26
|
+
DataSource set(String attrName, Object v);
|
27
27
|
|
28
|
-
|
28
|
+
DataSource setNested(String attrName, DataSource v);
|
29
29
|
|
30
|
-
|
30
|
+
DataSource setAll(DataSource other);
|
31
31
|
|
32
|
-
|
32
|
+
DataSource remove(String attrName);
|
33
33
|
|
34
|
-
|
34
|
+
DataSource deepCopy();
|
35
35
|
|
36
|
-
|
36
|
+
DataSource merge(DataSource other);
|
37
37
|
|
38
|
-
|
38
|
+
ObjectNode getObjectNode();
|
39
39
|
}
|
@@ -2,9 +2,9 @@ package org.embulk.config;
|
|
2
2
|
|
3
3
|
public interface Task
|
4
4
|
{
|
5
|
-
|
5
|
+
void validate();
|
6
6
|
// TODO public void validateConfig();
|
7
7
|
// ConfigSource.loadTask calls validateConfig and it validates only fields that have Config annotation
|
8
8
|
|
9
|
-
|
9
|
+
TaskSource dump();
|
10
10
|
}
|
@@ -3,29 +3,29 @@ package org.embulk.config;
|
|
3
3
|
public interface TaskSource
|
4
4
|
extends DataSource
|
5
5
|
{
|
6
|
-
|
6
|
+
<T> T loadTask(Class<T> taskType);
|
7
7
|
|
8
8
|
@Override
|
9
|
-
|
9
|
+
TaskSource getNested(String attrName);
|
10
10
|
|
11
11
|
@Override
|
12
|
-
|
12
|
+
TaskSource getNestedOrSetEmpty(String attrName);
|
13
13
|
|
14
14
|
@Override
|
15
|
-
|
15
|
+
TaskSource set(String attrName, Object v);
|
16
16
|
|
17
17
|
@Override
|
18
|
-
|
18
|
+
TaskSource setNested(String attrName, DataSource v);
|
19
19
|
|
20
20
|
@Override
|
21
|
-
|
21
|
+
TaskSource setAll(DataSource other);
|
22
22
|
|
23
23
|
@Override
|
24
|
-
|
24
|
+
TaskSource remove(String attrName);
|
25
25
|
|
26
26
|
@Override
|
27
|
-
|
27
|
+
TaskSource deepCopy();
|
28
28
|
|
29
29
|
@Override
|
30
|
-
|
30
|
+
TaskSource merge(DataSource other);
|
31
31
|
}
|
@@ -74,8 +74,6 @@ public final class LifeCycleManager
|
|
74
74
|
|
75
75
|
/**
|
76
76
|
* Start the life cycle - all instances will have their {@link javax.annotation.PostConstruct} method(s) called
|
77
|
-
*
|
78
|
-
* @throws Exception errors
|
79
77
|
*/
|
80
78
|
public void start()
|
81
79
|
{
|
@@ -146,7 +144,9 @@ public final class LifeCycleManager
|
|
146
144
|
}
|
147
145
|
|
148
146
|
/**
|
149
|
-
* Return true if
|
147
|
+
* Return true if {@link destroy} is called
|
148
|
+
*
|
149
|
+
* @return true if already destroyed
|
150
150
|
*/
|
151
151
|
public boolean isDestroyed()
|
152
152
|
{
|
@@ -2,13 +2,13 @@ package org.embulk.spi;
|
|
2
2
|
|
3
3
|
public interface ColumnVisitor
|
4
4
|
{
|
5
|
-
|
5
|
+
void booleanColumn(Column column);
|
6
6
|
|
7
|
-
|
7
|
+
void longColumn(Column column);
|
8
8
|
|
9
|
-
|
9
|
+
void doubleColumn(Column column);
|
10
10
|
|
11
|
-
|
11
|
+
void stringColumn(Column column);
|
12
12
|
|
13
|
-
|
13
|
+
void timestampColumn(Column column);
|
14
14
|
}
|
@@ -5,12 +5,12 @@ import org.embulk.config.ConfigSource;
|
|
5
5
|
|
6
6
|
public interface DecoderPlugin
|
7
7
|
{
|
8
|
-
|
8
|
+
interface Control
|
9
9
|
{
|
10
|
-
|
10
|
+
void run(TaskSource taskSource);
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
void transaction(ConfigSource config, DecoderPlugin.Control control);
|
14
14
|
|
15
|
-
|
15
|
+
FileInput open(TaskSource taskSource, FileInput input);
|
16
16
|
}
|
@@ -5,12 +5,12 @@ import org.embulk.config.ConfigSource;
|
|
5
5
|
|
6
6
|
public interface EncoderPlugin
|
7
7
|
{
|
8
|
-
|
8
|
+
interface Control
|
9
9
|
{
|
10
|
-
|
10
|
+
void run(TaskSource taskSource);
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
void transaction(ConfigSource config, EncoderPlugin.Control control);
|
14
14
|
|
15
|
-
|
15
|
+
FileOutput open(TaskSource taskSource, FileOutput fileOutput);
|
16
16
|
}
|
@@ -4,16 +4,16 @@ import org.embulk.config.ConfigSource;
|
|
4
4
|
|
5
5
|
public interface ExecutorPlugin
|
6
6
|
{
|
7
|
-
|
7
|
+
interface Executor
|
8
8
|
{
|
9
|
-
|
9
|
+
void execute(ProcessTask task, ProcessState state);
|
10
10
|
}
|
11
11
|
|
12
|
-
|
12
|
+
interface Control
|
13
13
|
{
|
14
|
-
|
14
|
+
void transaction(Schema executorSchema, int outputTaskCount, Executor executor);
|
15
15
|
}
|
16
16
|
|
17
|
-
|
17
|
+
void transaction(ConfigSource config, Schema outputSchema, int inputTaskCount,
|
18
18
|
ExecutorPlugin.Control control);
|
19
19
|
}
|
@@ -8,23 +8,23 @@ import org.embulk.config.CommitReport;
|
|
8
8
|
|
9
9
|
public interface FileInputPlugin
|
10
10
|
{
|
11
|
-
|
11
|
+
interface Control
|
12
12
|
{
|
13
|
-
|
13
|
+
List<CommitReport> run(TaskSource taskSource,
|
14
14
|
int taskCount);
|
15
15
|
}
|
16
16
|
|
17
|
-
|
17
|
+
ConfigDiff transaction(ConfigSource config,
|
18
18
|
FileInputPlugin.Control control);
|
19
19
|
|
20
|
-
|
20
|
+
ConfigDiff resume(TaskSource taskSource,
|
21
21
|
int taskCount,
|
22
22
|
FileInputPlugin.Control control);
|
23
23
|
|
24
|
-
|
24
|
+
void cleanup(TaskSource taskSource,
|
25
25
|
int taskCount,
|
26
26
|
List<CommitReport> successCommitReports);
|
27
27
|
|
28
|
-
|
28
|
+
TransactionalFileInput open(TaskSource taskSource,
|
29
29
|
int taskIndex);
|
30
30
|
}
|
@@ -3,11 +3,11 @@ package org.embulk.spi;
|
|
3
3
|
public interface FileOutput
|
4
4
|
extends AutoCloseable
|
5
5
|
{
|
6
|
-
|
6
|
+
void nextFile();
|
7
7
|
|
8
|
-
|
8
|
+
void add(Buffer buffer);
|
9
9
|
|
10
|
-
|
10
|
+
void finish();
|
11
11
|
|
12
|
-
|
12
|
+
void close();
|
13
13
|
}
|
@@ -8,21 +8,21 @@ import org.embulk.config.CommitReport;
|
|
8
8
|
|
9
9
|
public interface FileOutputPlugin
|
10
10
|
{
|
11
|
-
|
11
|
+
interface Control
|
12
12
|
{
|
13
|
-
|
13
|
+
List<CommitReport> run(TaskSource taskSource);
|
14
14
|
}
|
15
15
|
|
16
|
-
|
16
|
+
ConfigDiff transaction(ConfigSource config, int taskCount,
|
17
17
|
FileOutputPlugin.Control control);
|
18
18
|
|
19
|
-
|
19
|
+
ConfigDiff resume(TaskSource taskSource,
|
20
20
|
int taskCount,
|
21
21
|
FileOutputPlugin.Control control);
|
22
22
|
|
23
|
-
|
23
|
+
void cleanup(TaskSource taskSource,
|
24
24
|
int taskCount,
|
25
25
|
List<CommitReport> successCommitReports);
|
26
26
|
|
27
|
-
|
27
|
+
TransactionalFileOutput open(TaskSource taskSource, int taskIndex);
|
28
28
|
}
|
@@ -8,14 +8,14 @@ import org.embulk.config.CommitReport;
|
|
8
8
|
|
9
9
|
public interface FilterPlugin
|
10
10
|
{
|
11
|
-
|
11
|
+
interface Control
|
12
12
|
{
|
13
|
-
|
13
|
+
void run(TaskSource taskSource, Schema outputSchema);
|
14
14
|
}
|
15
15
|
|
16
|
-
|
16
|
+
void transaction(ConfigSource config, Schema inputSchema,
|
17
17
|
FilterPlugin.Control control);
|
18
18
|
|
19
|
-
|
19
|
+
PageOutput open(TaskSource taskSource, Schema inputSchema,
|
20
20
|
Schema outputSchema, PageOutput output);
|
21
21
|
}
|
@@ -5,14 +5,14 @@ import org.embulk.config.ConfigSource;
|
|
5
5
|
|
6
6
|
public interface FormatterPlugin
|
7
7
|
{
|
8
|
-
|
8
|
+
interface Control
|
9
9
|
{
|
10
|
-
|
10
|
+
void run(TaskSource taskSource);
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
void transaction(ConfigSource config, Schema schema,
|
14
14
|
FormatterPlugin.Control control);
|
15
15
|
|
16
|
-
|
16
|
+
PageOutput open(TaskSource taskSource, Schema schema,
|
17
17
|
FileOutput output);
|
18
18
|
}
|
@@ -8,26 +8,26 @@ import org.embulk.config.CommitReport;
|
|
8
8
|
|
9
9
|
public interface InputPlugin
|
10
10
|
{
|
11
|
-
|
11
|
+
interface Control
|
12
12
|
{
|
13
|
-
|
13
|
+
List<CommitReport> run(TaskSource taskSource,
|
14
14
|
Schema schema, int taskCount);
|
15
15
|
}
|
16
16
|
|
17
|
-
|
17
|
+
ConfigDiff transaction(ConfigSource config,
|
18
18
|
InputPlugin.Control control);
|
19
19
|
|
20
|
-
|
20
|
+
ConfigDiff resume(TaskSource taskSource,
|
21
21
|
Schema schema, int taskCount,
|
22
22
|
InputPlugin.Control control);
|
23
23
|
|
24
|
-
|
24
|
+
void cleanup(TaskSource taskSource,
|
25
25
|
Schema schema, int taskCount,
|
26
26
|
List<CommitReport> successCommitReports);
|
27
27
|
|
28
|
-
|
28
|
+
CommitReport run(TaskSource taskSource,
|
29
29
|
Schema schema, int taskIndex,
|
30
30
|
PageOutput output);
|
31
31
|
|
32
|
-
|
32
|
+
ConfigDiff guess(ConfigSource config);
|
33
33
|
}
|
@@ -8,22 +8,22 @@ import org.embulk.config.CommitReport;
|
|
8
8
|
|
9
9
|
public interface OutputPlugin
|
10
10
|
{
|
11
|
-
|
11
|
+
interface Control
|
12
12
|
{
|
13
|
-
|
13
|
+
List<CommitReport> run(TaskSource taskSource);
|
14
14
|
}
|
15
15
|
|
16
|
-
|
16
|
+
ConfigDiff transaction(ConfigSource config,
|
17
17
|
Schema schema, int taskCount,
|
18
18
|
OutputPlugin.Control control);
|
19
19
|
|
20
|
-
|
20
|
+
ConfigDiff resume(TaskSource taskSource,
|
21
21
|
Schema schema, int taskCount,
|
22
22
|
OutputPlugin.Control control);
|
23
23
|
|
24
|
-
|
24
|
+
void cleanup(TaskSource taskSource,
|
25
25
|
Schema schema, int taskCount,
|
26
26
|
List<CommitReport> successCommitReports);
|
27
27
|
|
28
|
-
|
28
|
+
TransactionalPageOutput open(TaskSource taskSource, Schema schema, int taskIndex);
|
29
29
|
}
|
@@ -5,13 +5,13 @@ import org.embulk.config.ConfigSource;
|
|
5
5
|
|
6
6
|
public interface ParserPlugin
|
7
7
|
{
|
8
|
-
|
8
|
+
interface Control
|
9
9
|
{
|
10
|
-
|
10
|
+
void run(TaskSource taskSource, Schema schema);
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
void transaction(ConfigSource config, ParserPlugin.Control control);
|
14
14
|
|
15
|
-
|
15
|
+
void run(TaskSource taskSource, Schema schema,
|
16
16
|
FileInput input, PageOutput output);
|
17
17
|
}
|
@@ -2,9 +2,9 @@ package org.embulk.spi;
|
|
2
2
|
|
3
3
|
public interface ProcessState
|
4
4
|
{
|
5
|
-
|
5
|
+
void initialize(int inputTaskCount, int outputTaskCount);
|
6
6
|
|
7
|
-
|
7
|
+
TaskState getInputTaskState(int inputTaskIndex);
|
8
8
|
|
9
|
-
|
9
|
+
TaskState getOutputTaskState(int outputTaskIndex);
|
10
10
|
}
|
@@ -5,13 +5,13 @@ import org.embulk.config.CommitReport;
|
|
5
5
|
public interface TransactionalFileInput
|
6
6
|
extends Transactional, FileInput
|
7
7
|
{
|
8
|
-
|
8
|
+
Buffer poll();
|
9
9
|
|
10
|
-
|
10
|
+
boolean nextFile();
|
11
11
|
|
12
|
-
|
12
|
+
void close();
|
13
13
|
|
14
|
-
|
14
|
+
void abort();
|
15
15
|
|
16
|
-
|
16
|
+
CommitReport commit();
|
17
17
|
}
|
@@ -5,15 +5,15 @@ import org.embulk.config.CommitReport;
|
|
5
5
|
public interface TransactionalFileOutput
|
6
6
|
extends Transactional, FileOutput
|
7
7
|
{
|
8
|
-
|
8
|
+
void nextFile();
|
9
9
|
|
10
|
-
|
10
|
+
void add(Buffer buffer);
|
11
11
|
|
12
|
-
|
12
|
+
void finish();
|
13
13
|
|
14
|
-
|
14
|
+
void close();
|
15
15
|
|
16
|
-
|
16
|
+
void abort();
|
17
17
|
|
18
|
-
|
18
|
+
CommitReport commit();
|
19
19
|
}
|
@@ -5,13 +5,13 @@ import org.embulk.config.CommitReport;
|
|
5
5
|
public interface TransactionalPageOutput
|
6
6
|
extends Transactional, PageOutput
|
7
7
|
{
|
8
|
-
|
8
|
+
void add(Page page);
|
9
9
|
|
10
|
-
|
10
|
+
void finish();
|
11
11
|
|
12
|
-
|
12
|
+
void close();
|
13
13
|
|
14
|
-
|
14
|
+
void abort();
|
15
15
|
|
16
|
-
|
16
|
+
CommitReport commit();
|
17
17
|
}
|
@@ -2,5 +2,5 @@ package org.embulk.spi.time;
|
|
2
2
|
|
3
3
|
public interface JRubyTimeParserHelperFactory
|
4
4
|
{
|
5
|
-
|
5
|
+
JRubyTimeParserHelper newInstance(String formatString, int year, int mon, int day, int hour, int min, int sec, int usec);
|
6
6
|
}
|
@@ -7,9 +7,9 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
7
7
|
public interface Type
|
8
8
|
{
|
9
9
|
@JsonValue
|
10
|
-
|
10
|
+
String getName();
|
11
11
|
|
12
|
-
|
12
|
+
Class<?> getJavaType();
|
13
13
|
|
14
|
-
|
14
|
+
byte getFixedStorageSize();
|
15
15
|
}
|
@@ -4,15 +4,15 @@ import org.embulk.spi.time.Timestamp;
|
|
4
4
|
|
5
5
|
public interface DynamicColumnSetter
|
6
6
|
{
|
7
|
-
|
7
|
+
void setNull();
|
8
8
|
|
9
|
-
|
9
|
+
void set(boolean value);
|
10
10
|
|
11
|
-
|
11
|
+
void set(long value);
|
12
12
|
|
13
|
-
|
13
|
+
void set(double value);
|
14
14
|
|
15
|
-
|
15
|
+
void set(String value);
|
16
16
|
|
17
|
-
|
17
|
+
void set(Timestamp value);
|
18
18
|
}
|
@@ -6,13 +6,13 @@ import org.embulk.spi.time.Timestamp;
|
|
6
6
|
|
7
7
|
public interface DefaultValueSetter
|
8
8
|
{
|
9
|
-
|
9
|
+
void setBoolean(PageBuilder pageBuilder, Column c);
|
10
10
|
|
11
|
-
|
11
|
+
void setLong(PageBuilder pageBuilder, Column c);
|
12
12
|
|
13
|
-
|
13
|
+
void setDouble(PageBuilder pageBuilder, Column c);
|
14
14
|
|
15
|
-
|
15
|
+
void setString(PageBuilder pageBuilder, Column c);
|
16
16
|
|
17
|
-
|
17
|
+
void setTimestamp(PageBuilder pageBuilder, Column c);
|
18
18
|
}
|
data/embulk-docs/src/release.rst
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
Release 0.6.23
|
2
|
+
==================================
|
3
|
+
|
4
|
+
General Changes
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Fixed ``LoadError: no such file to load -- liquid`` which happens when embulk is loaded by bundler.
|
8
|
+
|
9
|
+
Ruby Plugin API
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* ``Embulk::ConfigError`` extending ``org.embulk.config.ConfigException`` is reverted because of ``exception class/object expected`` error.
|
13
|
+
|
14
|
+
|
15
|
+
Release Date
|
16
|
+
------------------
|
17
|
+
2015-08-13
|
data/lib/embulk/error.rb
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
|
2
2
|
module Embulk
|
3
|
-
|
4
|
-
config_exception = org.embulk.config.ConfigException
|
5
|
-
else
|
6
|
-
config_exception = StandardError
|
7
|
-
end
|
8
|
-
|
9
|
-
class ConfigError < config_exception
|
3
|
+
class ConfigError < StandardError
|
10
4
|
end
|
11
5
|
|
12
6
|
class PluginLoadError < StandardError
|
data/lib/embulk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,8 +103,8 @@ files:
|
|
103
103
|
- classpath/bval-jsr303-0.5.jar
|
104
104
|
- classpath/commons-beanutils-core-1.8.3.jar
|
105
105
|
- classpath/commons-lang3-3.1.jar
|
106
|
-
- classpath/embulk-core-0.6.
|
107
|
-
- classpath/embulk-standards-0.6.
|
106
|
+
- classpath/embulk-core-0.6.23.jar
|
107
|
+
- classpath/embulk-standards-0.6.23.jar
|
108
108
|
- classpath/guava-18.0.jar
|
109
109
|
- classpath/guice-4.0.jar
|
110
110
|
- classpath/guice-multibindings-4.0.jar
|
@@ -382,6 +382,7 @@ files:
|
|
382
382
|
- embulk-docs/src/release/release-0.6.20.rst
|
383
383
|
- embulk-docs/src/release/release-0.6.21.rst
|
384
384
|
- embulk-docs/src/release/release-0.6.22.rst
|
385
|
+
- embulk-docs/src/release/release-0.6.23.rst
|
385
386
|
- embulk-docs/src/release/release-0.6.3.rst
|
386
387
|
- embulk-docs/src/release/release-0.6.4.rst
|
387
388
|
- embulk-docs/src/release/release-0.6.5.rst
|