You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2019/03/01 17:06:21 UTC

[GitHub] vvysotskyi commented on a change in pull request #1657: DRILL-5603: Replace String file paths to Hadoop Path

vvysotskyi commented on a change in pull request #1657: DRILL-5603: Replace String file paths to Hadoop Path
URL: https://github.com/apache/drill/pull/1657#discussion_r261668752
 
 

 ##########
 File path: exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/ReadEntryWithPath.java
 ##########
 @@ -18,19 +18,20 @@
 package org.apache.drill.exec.store.dfs;
 
 
+import org.apache.hadoop.fs.Path;
+
 public class ReadEntryWithPath {
 
-  protected String path;
+  protected Path path;
 
+  // Default constructor is needed for deserialization
+  public ReadEntryWithPath(){}
 
-  public ReadEntryWithPath(String path) {
-    super();
+  public ReadEntryWithPath(Path path) {
     this.path = path;
   }
 
-  public ReadEntryWithPath(){}
-
-  public String getPath(){
+  public Path getPath(){
 
 Review comment:
   Please add space before the bracket.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services