cshannon commented on code in PR #3332:
URL: https://github.com/apache/accumulo/pull/3332#discussion_r1180534839


##########
core/src/main/java/org/apache/accumulo/core/file/FileOperations.java:
##########
@@ -411,13 +419,26 @@ public class ReaderBuilder extends FileHelper implements 
ReaderTableConfiguratio
     private CacheProvider cacheProvider;
     private Cache<String,Long> fileLenCache;
     private boolean seekToBeginning = false;
+    private Range fence;
 
     public ReaderTableConfiguration forFile(String filename, FileSystem fs, 
Configuration fsConf,
         CryptoService cs) {
       filename(filename).fs(fs).fsConf(fsConf).cryptoService(cs);
       return this;
     }
 
+    public ReaderTableConfiguration forFile(TabletFile file, FileSystem fs, 
Configuration fsConf,
+        CryptoService cs) {
+      return forFile(file.getPathStr(), file.getFence(), fs, fsConf, cs);
+    }
+
+    public ReaderTableConfiguration forFile(String filename, Range fence, 
FileSystem fs,

Review Comment:
   Yeah I can rework it a bit and add that, it would probably make things a 
little better with sticking to the builder pattern.



-- 
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]

Reply via email to