cryptoe commented on code in PR #13368:
URL: https://github.com/apache/druid/pull/13368#discussion_r1071042945
##########
core/src/main/java/org/apache/druid/storage/local/LocalFileStorageConnector.java:
##########
@@ -55,16 +60,32 @@ public boolean pathExists(String path)
return fileWithBasePath(path).exists();
}
- /**
- * Reads the file present as basePath + path. Will throw an IO exception in
case the file is not present.
- * Closing of the stream is the responsibility of the caller.
- */
@Override
public InputStream read(String path) throws IOException
{
return Files.newInputStream(fileWithBasePath(path).toPath());
}
+ @Override
+ public InputStream readRange(String path, long from, long size) throws
IOException
Review Comment:
nit: from-> start seems better. Feel free to ignore this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]