Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
embulk-input-filename
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Klaus Wölfel
embulk-input-filename
Commits
286c8e2b
Commit
286c8e2b
authored
Jul 31, 2017
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to add the configuration of the multi dir tree
parent
a0e2d2aa
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
344 deletions
+10
-344
src/main/java/org/embulk/input/filename/FilenameFileInputPlugin.java
...va/org/embulk/input/filename/FilenameFileInputPlugin.java
+10
-4
src/main/java/org/embulk/input/filename/FilenameFileInputPlugin.java.save
...g/embulk/input/filename/FilenameFileInputPlugin.java.save
+0
-340
No files found.
src/main/java/org/embulk/input/filename/FilenameFileInputPlugin.java
View file @
286c8e2b
...
...
@@ -215,12 +215,16 @@ public class FilenameFileInputPlugin implements FileInputPlugin
FileInputPlugin
.
Control
control
)
{
PluginTask
task
=
taskSource
.
loadTask
(
PluginTask
.
class
);
log
.
info
(
"The taskSource of the FileName in the ConfigDiff resume: "
+
taskSource
.
toString
());
control
.
run
(
taskSource
,
taskCount
);
log
.
info
(
"Filename 1 stop point"
);
// Here the taskSource contains all the Configuration of the 'in'
log
.
info
(
"The taskSource of the FileName in the ConfigDiff resume: "
+
taskSource
.
toString
());
// Here will run all the tasks. Each task is to deal with a file.
control
.
run
(
taskSource
,
taskCount
);
// build next config
ConfigDiff
configDiff
=
Exec
.
newConfigDiff
();
log
.
info
(
"Filename 2 stop point"
);
// last_path
if
(
task
.
getFiles
().
isEmpty
())
{
// keep the last value
...
...
@@ -311,6 +315,8 @@ public class FilenameFileInputPlugin implements FileInputPlugin
public
TransactionalFileInput
open
(
TaskSource
taskSource
,
int
taskIndex
)
{
final
PluginTask
task
=
taskSource
.
loadTask
(
PluginTask
.
class
);
log
.
info
(
"The task in open: "
+
taskSource
.
toString
());
final
String
path
=
task
.
getFiles
().
get
(
taskIndex
);
return
new
InputStreamTransactionalFileInput
(
...
...
src/main/java/org/embulk/input/filename/FilenameFileInputPlugin.java.save
deleted
100644 → 0
View file @
a0e2d2aa
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment