diff options
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java')
-rw-r--r-- | exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java b/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java index 428a4e1bd..d3fcc5aab 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JSONRecordReader.java @@ -77,7 +77,7 @@ public class JSONRecordReader extends AbstractRecordReader { * @param columns pathnames of columns/subfields to read * @throws OutOfMemoryException */ - public JSONRecordReader(final FragmentContext fragmentContext, final String inputPath, final DrillFileSystem fileSystem, + public JSONRecordReader(final FragmentContext fragmentContext, final Path inputPath, final DrillFileSystem fileSystem, final List<SchemaPath> columns) throws OutOfMemoryException { this(fragmentContext, inputPath, null, fileSystem, columns); } @@ -90,14 +90,13 @@ public class JSONRecordReader extends AbstractRecordReader { * @param columns pathnames of columns/subfields to read * @throws OutOfMemoryException */ - public JSONRecordReader(final FragmentContext fragmentContext, final JsonNode embeddedContent, - final DrillFileSystem fileSystem, final List<SchemaPath> columns) throws OutOfMemoryException { + public JSONRecordReader(FragmentContext fragmentContext, JsonNode embeddedContent, DrillFileSystem fileSystem, + List<SchemaPath> columns) throws OutOfMemoryException { this(fragmentContext, null, embeddedContent, fileSystem, columns); } - private JSONRecordReader(final FragmentContext fragmentContext, final String inputPath, - final JsonNode embeddedContent, final DrillFileSystem fileSystem, - final List<SchemaPath> columns) { + private JSONRecordReader(FragmentContext fragmentContext, Path inputPath, JsonNode embeddedContent, + DrillFileSystem fileSystem, List<SchemaPath> columns) { Preconditions.checkArgument( (inputPath == null && embeddedContent != null) || @@ -106,7 +105,7 @@ public class JSONRecordReader extends AbstractRecordReader { ); if (inputPath != null) { - this.hadoopPath = new Path(inputPath); + this.hadoopPath = inputPath; } else { this.embeddedContent = embeddedContent; } |