aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java
diff options
context:
space:
mode:
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java')
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java
index 40549cc92..7d7bcfaa0 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FormatSelection.java
@@ -24,6 +24,7 @@ import org.apache.drill.common.logical.FormatPluginConfig;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import org.apache.hadoop.fs.Path;
public class FormatSelection {
@@ -32,16 +33,15 @@ public class FormatSelection {
private FormatPluginConfig format;
private FileSelection selection;
- public FormatSelection(){}
+ public FormatSelection() {}
@JsonCreator
- public FormatSelection(@JsonProperty("format") FormatPluginConfig format, @JsonProperty("files") List<String> files){
+ public FormatSelection(@JsonProperty("format") FormatPluginConfig format, @JsonProperty("files") List<Path> files){
this.format = format;
this.selection = FileSelection.create(null, files, null);
}
public FormatSelection(FormatPluginConfig format, FileSelection selection) {
- super();
this.format = format;
this.selection = selection;
}
@@ -52,7 +52,7 @@ public class FormatSelection {
}
@JsonProperty("files")
- public List<String> getAsFiles(){
+ public List<Path> getAsFiles(){
return selection.getFiles();
}