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
554744bd
Commit
554744bd
authored
Aug 08, 2017
by
yu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixTheLastPath' into multiThread
fix the multi dir problem and single dir problem
parents
58d3b89e
996b5c7a
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
84 deletions
+74
-84
src/main/java/org/embulk/input/filename/FilenameInputPlugin.java
...n/java/org/embulk/input/filename/FilenameInputPlugin.java
+66
-75
src/test/java/org/embulk/input/filename/TestFilenameInputPlugin.java
...va/org/embulk/input/filename/TestFilenameInputPlugin.java
+8
-9
No files found.
src/main/java/org/embulk/input/filename/FilenameInputPlugin.java
View file @
554744bd
This diff is collapsed.
Click to expand it.
src/test/java/org/embulk/input/filename/TestFilenameInputPlugin.java
View file @
554744bd
...
...
@@ -77,7 +77,7 @@ public class TestFilenameInputPlugin
ConfigSource
inConfig
=
embulk
.
newConfig
()
.
set
(
"type"
,
"filename"
)
.
set
(
"multi_dir"
,
multi_dir
)
.
set
(
"
order_by_modified_time"
,
"2
"
);
.
set
(
"
load_order"
,
"ASCEND_MODIFIED
"
);
Path
tmp
=
embulk
.
createTempDir
();
...
...
@@ -115,7 +115,7 @@ public class TestFilenameInputPlugin
//System.out.println("The actual" + actual);
assertEquals
(
lines
,
actual
);
inConfig
.
set
(
"
order_by_modified_time"
,
"1
"
);
inConfig
.
set
(
"
load_order"
,
"DESCEND_MODIFIED
"
);
res
=
embulk
.
runAllBuilder
(
execConfig
,
inConfig
,
outConfig
);
lines
=
Files
.
readAllLines
(
Paths
.
get
(
tmp
.
toString
()+
"/outputfile.txt"
));
...
...
@@ -143,7 +143,7 @@ public class TestFilenameInputPlugin
ConfigSource
inConfig
=
embulk
.
newConfig
()
.
set
(
"type"
,
"filename"
)
.
set
(
"
order_by_modified_time"
,
"2
"
)
.
set
(
"
load_order"
,
"ASCEND_MODIFIED
"
)
.
set
(
"multi_dir"
,
multi_dir
)
.
set
(
"multi_tag"
,
multi_tag
);
System
.
out
.
println
(
inConfig
);
...
...
@@ -236,9 +236,8 @@ public class TestFilenameInputPlugin
ConfigSource
inConfig
=
embulk
.
newConfig
()
.
set
(
"type"
,
"filename"
)
.
set
(
"order_by_modified_time"
,
"2"
)
.
set
(
"multi_dir"
,
multi_dir
)
.
set
(
"path_prefix"
,
"/home/chronos/user/Downloads/embulk-input-filename/src/test/resources/testDirList/example/example_"
);
.
set
(
"load_order"
,
"ASCEND_MODIFIED"
)
.
set
(
"multi_dir"
,
multi_dir
);
Path
tmp
=
embulk
.
createTempDir
();
ConfigSource
outConfig
=
embulk
.
newConfig
()
...
...
@@ -310,8 +309,8 @@ public class TestFilenameInputPlugin
multi_dir
.
add
(
path_src
.
toAbsolutePath
().
toString
()+
"/test.csv"
);
ConfigSource
inConfig
=
embulk
.
newConfig
()
.
set
(
"type"
,
"filename"
)
.
set
(
"
multi_dir"
,
multi_dir
)
.
set
(
"
parser"
,
embulk
.
newConfig
().
set
(
"type"
,
"none-bin"
)
);
.
set
(
"
load_order"
,
"ALPHABETICAL"
)
.
set
(
"
multi_dir"
,
multi_dir
);
Path
tmp
=
embulk
.
createTempDir
();
...
...
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