commit | f624cf3eff880d645a16f08deca5ddd1ee3a537a | [log] [tgz] |
---|---|---|
author | Yingyi Bu <buyingyi@gmail.com> | Tue Nov 24 17:01:55 2015 -0800 |
committer | Yingyi Bu <buyingyi@gmail.com> | Tue Nov 24 17:20:14 2015 -0800 |
tree | b124ab2d175813a97b549f959b11050be7a1de1a | |
parent | 4dc8244f130694ecf4df083dd425927e1105c6ed [diff] |
Add a constructor for FileSplit: FileSplit(String nodeName, String path, int ioDeviceId). change-Id: I1c7cc7752dd7b6d5261ff02d591f25d76d442a1c Reviewed-on: https://asterix-gerrit.ics.uci.edu/324 Reviewed-by: Till Westmann <tillw@apache.org> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/FileSplit.java b/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/FileSplit.java index 07462dd..b66122e 100644 --- a/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/FileSplit.java +++ b/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/FileSplit.java
@@ -42,6 +42,12 @@ this.ioDeviceId = ioDeviceId; } + public FileSplit(String nodeName, String path, int ioDeviceId) { + this.nodeName = nodeName; + this.file = new FileReference(new File(path)); + this.ioDeviceId = ioDeviceId; + } + public FileSplit(String nodeName, String path) { this.nodeName = nodeName; this.file = new FileReference(new File(path));